Skip to content

Commit

Permalink
fix: Fixed an error when executing the command "npm run watch" (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaokun1219 authored Apr 11, 2022
1 parent 0363302 commit 411006e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [[
Expand Down

0 comments on commit 411006e

Please sign in to comment.