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

[12.0.x] fix(@angular-devkit/build-angular): control linker template sourcemapping via builder sourcemap options #21173

Merged
merged 1 commit into from Jun 22, 2021

Conversation

clydin
Copy link
Member

@clydin clydin commented Jun 21, 2021

This change allows the linker sourcemap behavior to be controlled by the Webpack sourcemap configuration. For example, if a vendor file is being processed and vendor sourcemaps are disabled, the linker will now skip its internal sourcemap loading and processing steps.

12.0.x variant of #21155

…ping via builder sourcemap options

This change allows the linker sourcemap behavior to be controlled by the Webpack sourcemap configuration. For example, if a vendor file is being processed and vendor sourcemaps are disabled, the linker will now skip its internal sourcemap loading and processing steps.

(cherry picked from commit d4c5f85)
@clydin clydin added the target: patch This PR is targeted for the next patch release label Jun 21, 2021
@google-cla google-cla bot added the cla: yes label Jun 21, 2021
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jun 21, 2021
@filipesilva filipesilva merged commit 4016a88 into angular:12.0.x Jun 22, 2021
@clydin clydin deleted the linker/vendor-sourcemaps-12.0.x branch June 22, 2021 16:49
alan-agius4 added a commit that referenced this pull request Jul 5, 2021
…ourcemapping via builder sourcemap options"

This reverts commit d4c5f85.

Following a debugging and investigation with @petebacondarwin it appears that when the external template handling in the linker generates Babel AST nodes that reference the external template files which breaks Babel when it tried to flatten final source-map, which ends up no emitting any source-maps.

As an interim solution we should revert this.

Closes #21173
@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 Jul 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants