feat(@schematics/angular): Applications are zoneless by default#30718
Merged
alan-agius4 merged 2 commits intoangular:mainfrom Sep 24, 2025
Merged
feat(@schematics/angular): Applications are zoneless by default#30718alan-agius4 merged 2 commits intoangular:mainfrom
alan-agius4 merged 2 commits intoangular:mainfrom
Conversation
b381f6b to
2381fc4
Compare
2381fc4 to
79d6d09
Compare
ea4fb06 to
1a2767a
Compare
4b1459a to
1e10964
Compare
atscott
commented
Sep 18, 2025
1e10964 to
dce2fad
Compare
This change updates applications to omit the ZoneJS dependency by default. This change also includes the addition of `provideZoneChangeDetection` in the `initTestEnvironment` when ZoneJS is detected in the configuration (either on window or in the polyfills).
dce2fad to
d7d946a
Compare
…schema The default should only be applied in the application schematic schema as otherwise the prompt will never be displayed.
alan-agius4
approved these changes
Sep 24, 2025
| @@ -126,7 +126,7 @@ | |||
| "description": "Generate an application that does not use `zone.js`.", | |||
| "x-prompt": "Do you want to create a 'zoneless' application without zone.js?", | |||
Collaborator
There was a problem hiding this comment.
Are we keeping the prompt?
| await setNPMConfigRegistry(true); | ||
|
|
||
| await ng('new', 'test-project', '--skip-install'); | ||
| await ng('new', 'test-project', '--skip-install', '--no-zoneless'); |
Collaborator
There was a problem hiding this comment.
In a followup we should likely try to have most of the our tests test the default behavior (IE: zoneless).
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change updates applications to omit the ZoneJS dependency by
default.
This change also includes the addition of
provideZoneChangeDetectionin the
initTestEnvironmentwhen ZoneJS is detected in theconfiguration (either on window or in the polyfills).