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

feat(compiler): support ESM for isolatedModules: false #721

Merged
merged 1 commit into from
Jan 8, 2021
Merged

feat(compiler): support ESM for isolatedModules: false #721

merged 1 commit into from
Jan 8, 2021

Conversation

ahnpnl
Copy link
Collaborator

@ahnpnl ahnpnl commented Jan 8, 2021

Summary

Add support ESM for isolatedModules: false

  • Make sure esModuleInterop and allowSyntheticDefaultImports true to support import CJS into ESM
  • Adjust module value correctly according to Jest transform option supportsStaticESM and ts-jest config useESM

Related to #710

Test plan

  • Added unit tests
  • Added jest config for isolatedModules: false with ESM and run e2e tests with this config

Green CI

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

N.A.

- Make sure `esModuleInterop` and `allowSyntheticDefaultImports` true to support import CJS into ESM
- Adjust `module` value correctly according to Jest transform option `supportsStaticESM` and `ts-jest` config `useESM`
@ahnpnl ahnpnl marked this pull request as ready for review January 8, 2021 15:55
@ahnpnl ahnpnl merged commit a2166f8 into thymikee:master Jan 8, 2021
@ahnpnl ahnpnl deleted the esm-non-isolated-modules branch January 8, 2021 15:56
@ahnpnl ahnpnl mentioned this pull request Jan 11, 2021
@ahnpnl ahnpnl added this to the 9.0.0 milestone Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant