From 77018eee9217ad25bd99e11829a60b70dd851aae Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 31 Mar 2020 09:47:01 +0800 Subject: [PATCH] fix: Fix ESLint errors. --- scripts/build.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index a6905cf3..278773d7 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'], + }, + ]], }), ], };