Dev Dependecies in production build?
未关闭
还没有人认领这个 Issue。
Needs: Attention
Needs: Repro
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Hello,
I found this line on the hunt of a prod build bloatware:
https://github.com/facebook/react-native/blob/a5fc307eb4a683730b7220366b1e988a61bad943/packages/react-native/package.json#L173
Shouldn't this be a devDependency? Is this a bug or can somebody explain this?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中链接的依赖项所在行开始查看 packages/react-native/package.json,然后检查该依赖项在 production build 期间的使用方式。确认它是在 runtime 时必需,还是仅用于 development,并验证如果分类发生变化,production build 将不再包含不必要的依赖项体积。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 50/100