Skip to content
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

feat(@angular-devkit/build-angular): fine grain settings for sourceMaps #13062

Merged
merged 2 commits into from Nov 30, 2018
Merged

feat(@angular-devkit/build-angular): fine grain settings for sourceMaps #13062

merged 2 commits into from Nov 30, 2018

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Nov 27, 2018

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

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Nov 27, 2018
@alan-agius4 alan-agius4 removed the target: patch This PR is targeted for the next patch release label Nov 27, 2018
@alan-agius4 alan-agius4 removed the request for review from filipesilva November 27, 2018 12:56
@alan-agius4
Copy link
Collaborator Author

Still need to add a couple of tests but this is the idea. @clydin, @hansl, @filipesilva

@alan-agius4 alan-agius4 requested review from hansl, clydin and filipesilva and removed request for hansl and clydin November 27, 2018 14:17
Copy link
Contributor

@filipesilva filipesilva left a 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.

@@ -633,9 +633,48 @@
"default": false
},
"sourceMap": {
"type": "boolean",
"type": [
Copy link
Contributor

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.

Copy link
Collaborator Author

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

@ngbot
Copy link

ngbot bot commented Nov 30, 2018

Artifact Baseline Current Change
cli/new-production/test-project/main.js 173.60KB 174.25KB +661 bytes

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
@angular angular deleted a comment from ngbot bot Nov 30, 2018
@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label Nov 30, 2018
@vikerman vikerman merged commit 8516d68 into angular:master Nov 30, 2018
@alan-agius4 alan-agius4 deleted the fine_grain_sourcemaps branch December 1, 2018 06:36
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option for hidden-source-map to use with ng build --prod
6 participants