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

TS interop test and fix #671

Merged
merged 3 commits into from Mar 21, 2021
Merged

TS interop test and fix #671

merged 3 commits into from Mar 21, 2021

Conversation

guybedford
Copy link
Contributor

This fixes the TypeScript interop including a fix as well for enabling the synthetic default imports option and outputting ESM for Webpack to apply its own interop patterns instead of relying on the more complex TypeScript interop output. This will also reduce the size of TypeScript applications with ncc.

@@ -299,6 +299,8 @@ function ncc (
transpileOnly,
compiler: eval('__dirname + "/typescript.js"'),
compilerOptions: {
allowSyntheticDefaultImports: true,
Copy link
Member

Choose a reason for hiding this comment

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

Do we also want to use esModuleInterop: true?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty sure that only affects output (to CJS, which this is now not), not interpretation.

@styfle styfle added the automerge Automatically merge PR once checks pass label Mar 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PR once checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants