Importing as ES module, DevTool is included in production build
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- build-system, devtools
研究方向
Start at the /dist/index entry point and inspect how the ES module and default imports are selected during production builds. Compare the DevTool export with the default-import noop, then verify that a production bundle excludes the DevTool implementation while development builds still include it.
由索引模型根據 Issue 內容生成。
描述
As the title says, when a project by default imports and builds everything from ES modules, hookform's DevTool import returns the entire code even in production builds, instead of the noop of the default import.
Depending on the environment, a quick workaround may be to import from /dist/index for now, which returns either the CommonJS-version or a noop DevTool.
- 主要語言
- TypeScript
- 星號
- 670
- 分支
- 55
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-hook-form/devtools 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 45/100
react-hook-form/devtools#234 · 1 則留言 · 5 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 42/100
react-hook-form/devtools#226 · 3 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 55/100
react-hook-form/devtools#223 · 2 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 25/100
react-hook-form/devtools#212 · 5 則留言 · 8 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 45/100
react-hook-form/devtools#208 · 13 則留言 · 21 個 reaction ·
查看 react-hook-form/devtools 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難度 2/5 1-3 小時 新手友好度 78/100
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
-
calcite-components needs triage refactor
難度 2/5 1-3 小時 新手友好度 75/100
Esri/calcite-design-system#15203 ·
-
難度 2/5 1-3 小時 新手友好度 90/100
danielmiessler/LifeOS#2218 ·