Skip to content

Commit 411006e

Browse files
authored
fix: Fixed an error when executing the command "npm run watch" (jaywcjlove#351)
1 parent 0363302 commit 411006e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/watch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ require('colors-cli/toxic');
99
const watchOptions = {
1010
input: 'src/index.js',
1111
plugins: [
12-
nodeResolve(), // so Rollup can find `ms`
12+
nodeResolve.default(), // so Rollup can find `ms`
1313
commonjs(), // so Rollup can convert `ms` to an ES module
14-
babel({
14+
babel.default({
1515
babelHelpers: 'bundled',
1616
exclude: 'node_modules/**', // 只编译我们的源代码
1717
presets: [[

0 commit comments

Comments
 (0)