-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular-devkit/build-angular): add sourceMappingURL comment for … #16524
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
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.
One change request otherwise looks good.
result.downlevel = await processBundle({ | ||
...options, | ||
code: downlevelCode, | ||
map: downlevelMap && JSON.stringify(downlevelMap), |
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.
Can map
be a string or a RawSourceMap
here with a check in the processBundle
function to handle either? Sourcemaps can easily be in the megabyte range. Serializing and immediately deserializing can have performance and memory usage concerns.
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 make sense! Done.
Also, this will most likely not apply cleanly to 8.3.x so a more minimal change set may be needed for that branch. |
…ES2015 during differential loading When having differential loading enabled we only add the `sourceMappingURL` comment when optimization is enabled, because we only process these bundles when we enabling optimization. With this change we now process such bundles even when optimization is disabled and add `sourceMappingURL` when source maps are enabled and not hidden. Closes #16522
Blocking until the LTS version is green. As I am think it might be related to caching. |
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. |
…ES2015 during differential loading
When having differential loading enabled we only add the
sourceMappingURL
comment when optimization is enabled, because we only process these bundles when we enabling optimization.With this change we now process such bundles even when optimization is disabled and add
sourceMappingURL
when source maps are enabled and not hidden.Closes #16522