code-forge-io / code-forge-io/react-router-devtools
Plugins are only loaded in the development environment
- 主要言語
- 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 ❤️
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
src/vite/plugin.tsx のリンク先の 192 行目付近から始め、pluginDir、includeInProd、NODE_ENV がプラグインの読み込みにどのような影響を与えるかを追跡してください。既存のテスト、または devTools とクライアント/サーバー設定に関する本番ビルドパスを確認してください。includeInProd=true で設定されたプラグインが実行環境に存在し、開発時の動作が維持されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100