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