Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(@angular/build): allow disabling sourcemaps in the dev server#31510

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
alan-agius4 wants to merge1 commit intoangular:main
base:main
Choose a base branch
Loading
fromalan-agius4:vite-sourcemap

Conversation

@alan-agius4
Copy link
Collaborator

This change introduces the ability to disable sourcemaps when running the development server.

A new Vite plugin has been added to remove sourcemap comments from generated assets. The dev server's configuration has been updated to conditionally apply this plugin and control CSS sourcemap generation based on the project's sourceMap setting.

Closes#31331

@alan-agius4alan-agius4 added the target: patchThis PR is targeted for the next patch release labelOct 17, 2025
@alan-agius4alan-agius4force-pushed thevite-sourcemap branch 2 times, most recently fromad6d712 to934f57fCompareOctober 17, 2025 14:01
This change introduces the ability to disable sourcemaps when running the development server.A new Vite plugin has been added to remove sourcemap comments from generated assets. The dev server's configuration has been updated to conditionally apply this plugin and control CSS sourcemap generation based on the project's sourceMap setting.Closesangular#31331

importtype{Plugin}from'vite';

exportconstremoveSourceMapsPlugin:Plugin={
Copy link

@AlonMizAlonMizNov 2, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

isn't "remove sourcemaps" wasteful? meaning the bundler already generated and the cpu/memory resources are wasted. WDYT?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@AlonMizAlonMizAlonMiz left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

area: @angular/buildtarget: patchThis PR is targeted for the next patch release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

ng serve with esbuild/Vite ignores sourceMap configuration, injecting large inline source maps into all files

2 participants

@alan-agius4@AlonMiz

[8]ページ先頭

©2009-2025 Movatter.jp