Skip to content

Commit

Permalink
fix(cli-build): mitigate problem with require inside try catch blocks (
Browse files Browse the repository at this point in the history
  • Loading branch information
veinfors authored Dec 9, 2021
1 parent db408ff commit 05abf73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/build/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const config = ({
nodeResolve({
extensions,
}),
commonjs(),
commonjs({
ignoreTryCatch: false, // Avoids problems with require() inside try catch (https://github.com/rollup/plugins/issues/1004)
}),
json(),
babel({
babelrc: false,
Expand Down

0 comments on commit 05abf73

Please sign in to comment.