Skip to content

Revert "fix(@angular-devkit/build-angular): control linker template sourcemapping via builder sourcemap options"#21284

Merged
clydin merged 3 commits into
masterfrom
revert-21155-linker/vendor-sourcemaps
Jul 6, 2021
Merged

Revert "fix(@angular-devkit/build-angular): control linker template sourcemapping via builder sourcemap options"#21284
clydin merged 3 commits into
masterfrom
revert-21155-linker/vendor-sourcemaps

Conversation

@alan-agius4

@alan-agius4 alan-agius4 commented Jul 5, 2021

Copy link
Copy Markdown
Collaborator

Reverts #21155

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 #21271

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Jul 5, 2021
@google-cla google-cla Bot added the cla: yes label Jul 5, 2021
@alan-agius4
alan-agius4 force-pushed the revert-21155-linker/vendor-sourcemaps branch from 9ca89d9 to 1395997 Compare July 5, 2021 07:17
…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 #21271
@alan-agius4
alan-agius4 force-pushed the revert-21155-linker/vendor-sourcemaps branch from 1395997 to da74c6e Compare July 5, 2021 07:24
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

Related issue in FW angular/angular#42769

@petebacondarwin

Copy link
Copy Markdown
Contributor

Is it possible to create a test that demonstrated that the source-map for the library is created after this revert?

@alan-agius4
alan-agius4 force-pushed the revert-21155-linker/vendor-sourcemaps branch from 4b70d32 to 9109cdc Compare July 6, 2021 14:04
…on to false.

This is an interim solution until angular/angular#42769 is fixed.

Closes #21271
@alan-agius4
alan-agius4 force-pushed the revert-21155-linker/vendor-sourcemaps branch from 9109cdc to 88737e3 Compare July 6, 2021 14:12
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jul 6, 2021
@clydin
clydin merged commit 0776370 into master Jul 6, 2021
@alan-agius4
alan-agius4 deleted the revert-21155-linker/vendor-sourcemaps branch July 6, 2021 16:02
@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 Aug 6, 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.

Partially-compiled multi-entry Ivy library missing in vendor sourcemaps

3 participants