Report a warning/error when multiple instance of `@angular/core` are bundled.
未关闭
area: @angular-devkit/build-angular
feature
feature: under consideration
- 主要语言
- TypeScript
- 星标
- 27k
- 派生
- 11.8k
- 平均合并
- 14 小时 23 分钟
- 30 天内合并 PR
- 162
描述
### Command
build
### Description
When the CLI bundles Angular apps it can happen that multiple instances of `@angular/core` are bundled.
This leads to a variety of errors at runtime that are difficult to diagnose for developers.
Currently on the FW repo we point users toward : angular/angular#35586
### Describe the solution you'd like
I'd be great if the CLI could throw a warning/error when it happens so users are aware even before runtime that there is an issue with their bundle and they should have a look at their dependency resolution !
贡献指南
调研方向
从 CLI 的 build 命令开始,调查依赖解析和打包的 Angular 应用在 build 期间是如何表示的。查看 angular/angular#35586,了解报告的多个 @angular/core 实例故障模式。当多个实例被打包时,build 能在运行时故障发生前报告警告或错误,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- build-system, cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100