angular / angular/components

Significant Slowdown in M3 Runtime Compilation

未关闭
#28,971 10 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
area: material/core M3 needs investigation P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

Building our NX monorepo, particularly when utilizing M3 material components at runtime, is experiencing noticeable delays. This slowdown in compilation time is impacting our development efficiency.

Without M3, the compilation process takes approximately 2 seconds. However, with M3 integrated, the compilation time extends to 40 seconds or more.

### Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

### Expected Behavior
.

### Actual Behavior

.

### Environment

- Angular: v18.0.0-rc.0
- CDK/Material: v18.0.0-rc.0
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): mac

贡献指南

打开贡献指南

调研方向

未提供可用的复现链接、步骤、文件、测试或入口点。首先复现 NX monorepo 在包含和不包含 Angular Material M3 运行时组件时的构建,并比较报告的约 2 秒和 40 秒的编译时间;完成的要求是隔离性能下降的原因,并验证编译时间得到改善。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend, performance
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。