Skip to content

fix es modules usage in TypeScript when no .babelrc is present #44

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

Merged
merged 2 commits into from
Jan 16, 2018

Conversation

yyx990803
Copy link
Member

After the last patch, when the user uses vue-jest with TypeScript + module: 'es2015' + without a .babelrc, it will leave the ES modules syntax untouched and cause errors when Jest attempts to run.

So in that case we apply babel-plugin-transform-es2015-modules-commonjs for the user.

@eddyerburgh eddyerburgh merged commit fff35e7 into vuejs:master Jan 16, 2018
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.

2 participants