-
Notifications
You must be signed in to change notification settings - Fork 11.9k
fix(@angular/cli): skip CLI version check for migrate-only updates #32942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -146,9 +146,11 @@ export async function* serveWithVite( | |||||
| browserOptions.forceI18nFlatOutput = true; | ||||||
| } | ||||||
|
|
||||||
| const { vendor: thirdPartySourcemaps, scripts: scriptsSourcemaps } = normalizeSourceMaps( | ||||||
| browserOptions.sourceMap ?? false, | ||||||
| ); | ||||||
| const { | ||||||
| vendor: thirdPartySourcemaps, | ||||||
| scripts: scriptsSourcemaps, | ||||||
| styles: stylesSourcemaps, | ||||||
| } = normalizeSourceMaps(browserOptions.sourceMap ?? false); | ||||||
|
|
||||||
| if (scriptsSourcemaps && browserOptions.server) { | ||||||
| // https://un5zrke0g2qx6zm5.julianrbryant.com/api/process.html#processsetsourcemapsenabledval | ||||||
|
|
@@ -184,7 +186,7 @@ export async function* serveWithVite( | |||||
| // Always enable JIT linking to support applications built with and without AOT. | ||||||
| // In a development environment the additional scope information does not | ||||||
| // have a negative effect unlike production where final output size is relevant. | ||||||
| { sourcemap: true, jit: true, thirdPartySourcemaps }, | ||||||
| { sourcemap: scriptsSourcemaps, jit: true, thirdPartySourcemaps }, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
References
|
||||||
| 1, | ||||||
| ); | ||||||
|
|
||||||
|
|
@@ -428,6 +430,7 @@ export async function* serveWithVite( | |||||
| extensions?.middleware, | ||||||
| transformers?.indexHtml, | ||||||
| thirdPartySourcemaps, | ||||||
| stylesSourcemaps, | ||||||
| ); | ||||||
|
|
||||||
| server = await createServer(serverConfiguration); | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defaulting
sourceMaptofalsehere (via?? false) causesstylesSourcemapsto befalseby default. SincestylesSourcemapsis now used to controldevSourcemapin the Vite server (which was previously hardcoded totrue), this change disables CSS sourcemaps by default inng serve. To maintain the existing developer experience where CSS sourcemaps are enabled by default even if not explicitly configured in the build options, consider using a default that preserves this behavior for styles.References