code-forge-io / code-forge-io/react-router-devtools

Plugins are only loaded in the development environment

未关闭
#214 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
972
派生
55
PR 合并指标
30 天内没有已合并 PR

描述

I specified a `pluginDir` and the plugins are being loaded correctly. I would also like to use the dev tools in production, so I set `includeInProd` to `true` for `client`, `server`, and `devTools`. However, my plugins do not appear in the live environment.

If I interpret [this line](https://github.com/forge-42/react-router-devtools/blob/main/src/vite/plugin.tsx#L192) correctly, plugins are only loaded when `NODE_ENV` is set to "development".

Is there a reason for this, and are there any plans to change it?

Thanks a lot for these wonderful React Router dev tools ❤️

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。