Skip to content

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

Merged
filipesilva merged 1 commit intoangular:12.0.xfrom
clydin:linker/vendor-sourcemaps-12.0.x
Jun 22, 2021
Merged

[12.0.x] fix(@angular-devkit/build-angular): control linker template sourcemapping via builder sourcemap options#21173
filipesilva merged 1 commit intoangular:12.0.xfrom
clydin:linker/vendor-sourcemaps-12.0.x

Conversation

@clydin
Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants