Skip to content

Commit

Permalink
clean regenerator to no-polyfill bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
ZxBing0066 committed Jun 10, 2020
1 parent f3fe1bb commit 2a627ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion babel-without-polyfill.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-runtime",
[
"@babel/plugin-transform-runtime",
{
"regenerator": false
}
],
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-optional-chaining",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const isDevelopment = env === 'development';
const analyzer = process.env.ANALYZER;
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

const babelOptions = require('./babel.config.json');
let babelOptions = require('./babel.config.json');
// babelOptions = require('./babel-without-polyfill.config.json');

const webpackConfig = {
entry: {
Expand Down

0 comments on commit 2a627ae

Please sign in to comment.