-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@angular-devkit/build-angular): fine grain settings for sourceMaps #13062
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
Conversation
Still need to add a couple of tests but this is the idea. @clydin, @hansl, @filipesilva |
packages/angular_devkit/build_angular/src/angular-cli-files/models/build-options.ts
Outdated
Show resolved
Hide resolved
packages/angular_devkit/build_angular/src/angular-cli-files/models/build-options.ts
Outdated
Show resolved
Hide resolved
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.
LGTM overall. Really nice work and test coverage.
Historically, any change we make to sourcemaps breaks something though. It's just very hard to test the correctness of sourcemaps. After this comes in we should be especially aware on the issue tracker.
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/utils.ts
Show resolved
Hide resolved
@@ -633,9 +633,48 @@ | |||
"default": false | |||
}, | |||
"sourceMap": { | |||
"type": "boolean", | |||
"type": [ |
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.
Schema bookkeeping is getting pretty annoying. We should find a way around this sometime.
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.
Yeah, it’s pretty hard even just to add a new property. You have to add t in multiple places
packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/utils.ts
Show resolved
Hide resolved
This PR add more control over which sourceMaps you want, Now you can enable sourceMaps for scripts only, styles only or both. Also we added another functionality which are hidden sourcemaps. These are normaly used for error reporting tools. Fixes #7527
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 PR add more control over which sourceMaps you want, Now you can enable sourceMaps for scripts only, styles only or both. Also we added another functionality which are hidden sourcemaps. These are normally used for error reporting tools.
Fixes #7527