diff --git a/scripts/build.js b/scripts/build.js index a6905cf..278773d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -20,12 +20,13 @@ const inputOptions = { exclude: 'node_modules/**', // 只编译我们的源代码 presets: [[ '@babel/preset-env', { - /** - * Do not transpile typeof helper with itself - * https://github.com/babel/babel/pull/10788/files - */ - 'exclude': ['@babel/plugin-transform-typeof-symbol'] - }]], + /** + * Do not transpile typeof helper with itself + * https://github.com/babel/babel/pull/10788/files + */ + exclude: ['@babel/plugin-transform-typeof-symbol'], + }, + ]], }), ], };