Skip to content

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Mar 12, 2021

Skip async transformation when the path matches a FESM2015 entrypoint. Ng-packagr doesn't allow changing the script target for entry-points which makes this possible https://github.com/ng-packagr/ng-packagr/blob/master/src/lib/ng-package/entry-point/compile-ngc.transform.ts#L48

This is important to reduce greatly the cold build performance overhead when targeting ES2017+

@google-cla google-cla bot added the cla: yes label Mar 12, 2021
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Mar 12, 2021
…formation

Skip  `async` transformation when the path matches a FESM2015 entrypoint.  Ng-packagr doesn't allow changing the script target for entry-points which makes this possible https://github.com/ng-packagr/ng-packagr/blob/master/src/lib/ng-package/entry-point/compile-ngc.transform.ts#L48

This is important to reduce greatly the cold build performance overhead when targeting ES2017+
@alan-agius4 alan-agius4 requested a review from clydin March 12, 2021 12:36
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Mar 12, 2021
@alan-agius4 alan-agius4 merged commit 63a2dbb into angular:master Mar 12, 2021
@alan-agius4 alan-agius4 deleted the fesm-skip-async branch March 12, 2021 15:51
@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 Apr 12, 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.

2 participants