Skip to content

Commit

Permalink
Update rollup to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Oct 21, 2023
1 parent 1195a43 commit 0538359
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 20 deletions.
298 changes: 281 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"micromatch": "4.0.5",
"prettier": "3.0.3",
"redos-detector": "4.1.2",
"rollup": "3.29.4",
"rollup": "4.1.0",
"ts-jest": "29.1.1",
"tslib": "2.6.2",
"typescript": "5.2.2"
Expand Down
9 changes: 7 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ function buildConfig({ input, output }) {
return {
input,
plugins: [typescript(), resolve()],
onwarn: (e) => {
throw new Error(e);
onLog: (level, log, handler) => {
if (level === 'warn') {
// treat warnings as errors
handler('error', log);
} else {
handler(level, log);
}
},
output,
};
Expand Down

0 comments on commit 0538359

Please sign in to comment.