Skip to content

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

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

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

alan-agius4
Copy link
Collaborator

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

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
Collaborator Author

Related issue in FW angular/angular#42769

@petebacondarwin
Copy link
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

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