From 2ac4f7b8b025b63ef95ebf7ee35dcd901ba19c8e Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Wed, 19 Jun 2019 19:01:42 -0700 Subject: [PATCH] use root babel config --- scripts/bundle.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/bundle.config.js b/scripts/bundle.config.js index 2b81615121e..3a6e46ac3ed 100644 --- a/scripts/bundle.config.js +++ b/scripts/bundle.config.js @@ -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' } } ]