Skip to content
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

refactor(@angular-devkit/build-angular): reduce repeat TypeScript configuration loading #21520

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 6, 2021

An application's TypeScript configuration was previously being loaded multiple times in several different aspects of the build setup process. These aspects need to access specific compiler options relevant to that particular area of the setup. However, loading the configuration can be expensive due to the process also calculating the root files for the TypeScript compilation which can result in a large amount of file access. To improve the setup performance, the number of times the TypeScript configuration will be loaded has now been reduced with further reductions possible with additional refactorings.

@clydin clydin added the target: major This PR is targeted for the next major release label Aug 6, 2021
@google-cla google-cla bot added the cla: yes label Aug 6, 2021
@clydin clydin force-pushed the cleanup/tsconfig-reading branch 2 times, most recently from a0edad4 to a582f60 Compare August 6, 2021 17:32
@clydin clydin requested a review from alan-agius4 August 6, 2021 17:45
…checks

Applications can now only be built with Ivy. However, several checks were still present in the code to determine if Ivy was enabled. Since Ivy is always enabled these checks have since become unused code and can be removed.
…figuration loading

An application's TypeScript configuration was previously being loaded multiple times in several different aspects of the build setup process. These aspects need to access specific compiler options relevant to that particular area of the setup. However, loading the configuration can be expensive due to the process also calculating the root files for the TypeScript compilation which can result in a large amount of file access. To improve the setup performance, the number of times the TypeScript configuration will be loaded has now been reduced with further reductions possible with additional refactorings.
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Aug 9, 2021
@alan-agius4 alan-agius4 merged commit c4baba4 into angular:master Aug 9, 2021
@clydin clydin deleted the cleanup/tsconfig-reading branch August 9, 2021 13:53
@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 9, 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: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants