Skip to content

Commit

Permalink
Merge pull request #250 from vuejs/lachlan/force-es5
Browse files Browse the repository at this point in the history
Force ES5 for TS compilation
  • Loading branch information
lmiller1990 committed Jul 2, 2020
2 parents 6b47660 + b287fed commit 4eb19bc
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 4eb19bc

Please sign in to comment.