Plugins are only loaded in the development environment

未關閉
#214 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@yoiang 已經在處理了。

開始於 2026年6月17日。

  • #260 來自 @yoiang —— 未關閉

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
react, typescript
領域
devtools

研究方向

從 src/vite/plugin.tsx 中連結到的第 192 行附近開始,追蹤 pluginDir、includeInProd 和 NODE_ENV 如何影響外掛程式載入。檢查現有測試或正式環境建置路徑中對 devTools 以及用戶端/伺服器設定的處理。完成的標準是:使用 includeInProd=true 設定的外掛程式存在於執行環境中,同時保留開發環境下的行為。

由索引模型根據 Issue 內容生成。

描述

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 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 ❤️

主要語言
TypeScript
星號
975
分支
55
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

code-forge-io/react-router-devtools 的其他 Issue

查看 code-forge-io/react-router-devtools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。