Skip to content

Commit

Permalink
fix: plugin-multiple-editor build error
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Feb 23, 2024
1 parent 4dfe842 commit 9f40c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-multiple-editor/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';

process.on('unhandledRejection', err => {
console.log(err);
throw err;
});

Expand Down
2 changes: 2 additions & 0 deletions packages/plugin-multiple-editor/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ process.env.NODE_ENV = 'development';
// ignoring them. In the future, promise rejections that are not handled will
// terminate the Node.js process with a non-zero exit code.
process.on('unhandledRejection', err => {
console.log(err);
throw err;
});

Expand Down Expand Up @@ -150,5 +151,6 @@ checkBrowsers(paths.appPath, isInteractive)
if (err && err.message) {
console.log(err.message);
}
console.log(err);
process.exit(1);
});

0 comments on commit 9f40c8a

Please sign in to comment.