-
Notifications
You must be signed in to change notification settings - Fork 12.8k
esModuleInterop does not implicitly enable allowSyntheticDefaultImports #26193
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
What are your thoughts here @weswigham? |
It does but only if targeting a module < es6, since that's all we control the emit behavior for. It's a weak justification, though - I can see changing it. |
Hey @DanielRosenwasser, I saw your other comment about the docs being wrong. So this is a toss-up. Whatever you guys think makes the most sense. I only stumbled upon this because the Vue CLI tool was only setting |
The case of this I just ran into with both 3.0.1 and 2.9.2 has
|
Would appreciate a PR for this! |
@RyanCavanaugh Per the contributing guide,
I've submitted PR #26866. @DanielRosenwasser I have submitted microsoft/TypeScript-Handbook#816 reverting microsoft/TypeScript-Handbook@8e974c8 for when/if my PR lands. |
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.9.x and 3.x
Search Terms:
esmoduleinterop
esmoduleinterop allowsyntheticdefaultimports
Expected behavior:
Enabling
esModuleInterop
should also implicitly enableallowSyntheticDefaultImports
, according to https://www.typescriptlang.org/docs/handbook/compiler-options.htmlActual behavior:
This is not the case, as per this issue: vuejs/vue-cli#2062
The text was updated successfully, but these errors were encountered: