Skip to content

Commit

Permalink
fix: only enable helper aliasing when useBuiltIns equals usage
Browse files Browse the repository at this point in the history
fixes CommonJS module transpilation
fixes #2637
  • Loading branch information
sodatea committed Sep 29, 2018
1 parent 47a28e0 commit da64938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vue/babel-preset-app/index.js
Expand Up @@ -139,6 +139,7 @@ module.exports = (context, options = {}) => {
regenerator: useBuiltIns !== 'usage',
useBuiltIns: useBuiltIns !== false,
useESModules: !process.env.VUE_CLI_BABEL_TRANSPILE_MODULES,
helpers: useBuiltIns === 'usage',
moduleName: path.dirname(require.resolve('@babel/runtime/package.json'))
}])

Expand Down

0 comments on commit da64938

Please sign in to comment.