From 411006ef107bdc9aca6c8f72c8315a83377495bd Mon Sep 17 00:00:00 2001 From: zhaokun1219 <475341268@qq.com> Date: Mon, 11 Apr 2022 15:13:59 +0800 Subject: [PATCH] fix: Fixed an error when executing the command "npm run watch" (#351) --- scripts/watch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/watch.js b/scripts/watch.js index 4107d129..630e0c56 100644 --- a/scripts/watch.js +++ b/scripts/watch.js @@ -9,9 +9,9 @@ require('colors-cli/toxic'); const watchOptions = { input: 'src/index.js', plugins: [ - nodeResolve(), // so Rollup can find `ms` + nodeResolve.default(), // so Rollup can find `ms` commonjs(), // so Rollup can convert `ms` to an ES module - babel({ + babel.default({ babelHelpers: 'bundled', exclude: 'node_modules/**', // 只编译我们的源代码 presets: [[