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' + ] + } + } ] }, {