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

build: enable esModuleInterop TypeScript option #21121

Merged
merged 1 commit into from Jun 13, 2021

Conversation

clydin
Copy link
Member

@clydin clydin commented Jun 11, 2021

The esModuleInterop option is recommended to be enable by TypeScript and corrects several assumptions TypeScript would otherwise make when importing CommonJS files.
This option change helps ensure compatibility as packages move towards ESM.
Reference: https://www.typescriptlang.org/tsconfig#esModuleInterop
Reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-from-commonjs-modules-with---esmoduleinterop

@clydin clydin added the target: minor This PR is targeted for the next minor release label Jun 11, 2021
@google-cla google-cla bot added the cla: yes label Jun 11, 2021
@clydin clydin force-pushed the ts-build-options branch 4 times, most recently from f2f6a4b to a5cf63a Compare June 11, 2021 21:16
The `esModuleInterop` option is recommended to be enable by TypeScript and corrects several assumptions TypeScript would otherwise make when importing CommonJS files.
This option change helps ensure compatibility as packages move towards ESM.
Reference: https://www.typescriptlang.org/tsconfig#esModuleInterop
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jun 13, 2021
@clydin clydin merged commit b3d7080 into angular:master Jun 13, 2021
@clydin clydin deleted the ts-build-options branch June 13, 2021 15:45
@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 Jul 14, 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: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants