Skip to content

Commit

Permalink
use root babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Jun 20, 2019
1 parent 7f35618 commit 2ac4f7b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/bundle.config.js
Expand Up @@ -70,10 +70,8 @@ const config = {
loader: 'babel-loader',
include: /src/,
options: {
presets: [['@babel/preset-env', {forceAllTransforms: true}]],
// all of the helpers will reference the module @babel/runtime to avoid duplication
// across the compiled output.
plugins: ['@babel/transform-runtime']
configFile: resolve(__dirname, '../babel.config.js'),
envName: 'esm'
}
}
]
Expand Down

0 comments on commit 2ac4f7b

Please sign in to comment.