Skip to content

feat(@schematics/angular): update compiler options target and module settings #17637

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 1 commit into from
May 6, 2020
Merged

feat(@schematics/angular): update compiler options target and module settings #17637

merged 1 commit into from
May 6, 2020

Conversation

alan-agius4
Copy link
Collaborator

With this change we update the target and module settings of various compilation units.

  • We replace ES5 target in protractor. Protractor runs on Node.Js which support ES2018
  • For applications we now use ES2020 instead of ESNext as a module to avoid unexpected changes in behaviour

This changes also adds a migration to update existing projects and also removes module from the Universal tsconfig as per #17352 to enable lazy loading on the server.

@alan-agius4 alan-agius4 added the target: major This PR is targeted for the next major release label May 5, 2020
@alan-agius4 alan-agius4 requested review from clydin and IgorMinar and removed request for clydin May 5, 2020 14:45
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest looks great but please have Charles review the tests as I didn't have time/experise to review those.

…settings

With this change we update the target and module settings of various compilation units.

- We replace ES5 target in protractor. Protractor runs on Node.Js which support ES2018
- For applications we now use `ES2020` instead of `ESNext` as a module to avoid unexpected changes in behaviour

This changes also adds a migration to update existing projects and also removes `module` from the Universal tsconfig as per #17352 to enable lazy loading on the server.
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 6, 2020
@dgp1130 dgp1130 merged commit 0fd3c55 into angular:master May 6, 2020
@alan-agius4 alan-agius4 deleted the ts-compiler-options-v10 branch May 6, 2020 18:49
@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 Jun 6, 2020
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.

5 participants