Skip to content

Significant Slowdown in M3 Runtime Compilation #28971

Open
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    M3P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/coreneeds investigationA member of the team needs to do further investigation to determine the root cause

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions