From 9b11f2cf9b19e180b9aa0d966335428419274eec Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 5 Sep 2018 23:48:30 +0800 Subject: [PATCH] Fix for test --- .babelrc | 1 - webpack.config.js | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.babelrc b/.babelrc index cb9db7f2..55ea38e2 100644 --- a/.babelrc +++ b/.babelrc @@ -8,7 +8,6 @@ ], "plugins": [ "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-transform-async-to-generator", ["@babel/plugin-transform-runtime", { "helpers": true, "regenerator": true diff --git a/webpack.config.js b/webpack.config.js index 591bee20..c620787f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -42,7 +42,14 @@ const config = { exclude: /node_modules/, use: [ 'cache-loader', - 'babel-loader' + { + loader: 'babel-loader', + options: { + plugins: [ + '@babel/plugin-transform-async-to-generator' + ] + } + } ] }, {