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): allow isolatedModule: true to have ESM support #2219

Merged
merged 1 commit into from Dec 17, 2020
Merged

feat(compiler): allow isolatedModule: true to have ESM support #2219

merged 1 commit into from Dec 17, 2020

Commits on Dec 16, 2020

  1. feat(compiler): allow isolatedModule: true to have ESM support

    Introduce a new config option `useESM`. When this option is true and Jest runtime supports ESM for certain files, `ts-jest` will transform those files to ESM syntax based on the `module` defined in user tsconfig.
    
    If `useESM: true` and Jest supports ESM syntax for the file and `module` from tsconfig is not `es2015/es2020/esnext`, `esnext` will be used as default.
    
    Related to #1709
    ahnpnl committed Dec 16, 2020
    Copy the full SHA
    9891126 View commit details
    Browse the repository at this point in the history