test(@angular/build): add e2e test for animations chunk optimization#33035
Conversation
dbee562 to
bf14512
Compare
There was a problem hiding this comment.
Code Review
This pull request enables the compact output option in the Rollup-based chunk optimizer and introduces a new E2E test to verify that Angular animations are correctly handled during chunk optimization. Feedback suggests applying the compact setting to the Rolldown configuration for consistency, using regular expressions for more robust configuration patching in tests, and removing a redundant build step to optimize test execution time.
Add an E2E test case to verify that the chunk optimizer does not fold lazy-loaded animations modules back into the primary main chunk. The test installs the matching version of @angular/animations, injects provideAnimationsAsync, and builds the test project with chunk optimization enabled. It then validates that the AnimationEngine is preserved within one of the independent lazy chunks and is absent from the initial main.js output.
bf14512 to
fdce97f
Compare
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Add an E2E test case to verify that the chunk optimizer does not fold lazy-loaded animations modules back into the primary main chunk. The test installs the matching version of @angular/animations, injects provideAnimationsAsync, and builds the test project with chunk optimization enabled. It then validates that the AnimationEngine is preserved within one of the independent lazy chunks and is absent from the initial main.js output.