Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 11, 2021

12.2.x variant of #21552

…ed in third-party libraries

Application code (TS files) will only contain native async if the TypeScript configuration target is ES2017+. However, third-party libraries can contain native async regardless of the target option. To address these third-party libraries, all non-application files need to be analyzed to determine if they must have native async downlevelled. The analysis is first resource path based and then a string match search for the async keyword. This approach has the potential for rare false positives (for example, the word async in a comment) but the outcome would only be a small amount of additional processing for that one file due to the no-op transformation. This is in contrast to a more exact method covering those rare false positives but that would require a more expensive analysis operation on every file and result in longer overall build times.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Aug 11, 2021
@clydin clydin requested a review from alan-agius4 August 11, 2021 14:43
@google-cla google-cla bot added the cla: yes label Aug 11, 2021
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Aug 11, 2021
@alan-agius4 alan-agius4 merged commit 22e0208 into angular:12.2.x Aug 11, 2021
@clydin clydin deleted the async-await-third-part-12.2.x branch August 11, 2021 15:25
@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 Sep 11, 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