Skip to content

Commit

Permalink
fix: force es5 for TS
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Jul 2, 2020
1 parent 6b47660 commit b287fed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils.js
Expand Up @@ -67,7 +67,8 @@ const getTsJestConfig = function getTsJestConfig(config) {
const createTransformer = require('ts-jest').createTransformer
const tr = createTransformer()
const { typescript } = tr.configsFor(config)
return { compilerOptions: typescript.options }
// Force es5 to prevent const vue_1 = require('vue') from conflicting
return { compilerOptions: { ...typescript.options, target: 'es5' } }
}

function isValidTransformer(transformer) {
Expand Down

0 comments on commit b287fed

Please sign in to comment.