Skip to content

Commit

Permalink
Consider (most) warnings as errors in rollup (#385)
Browse files Browse the repository at this point in the history
Related to #383
Follow-up of #384
  • Loading branch information
dubzzz committed Jul 2, 2019
1 parent 8f7e3ce commit 9dab087
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/rollup/esm/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ export default {
format: 'iife',
name: 'RunFastCheck'
},
plugins: [resolve(), cjs()]
plugins: [resolve(), cjs()],
onwarn: warning => {
if (warning.code !== 'THIS_IS_UNDEFINED') throw warning;
}
};
5 changes: 4 additions & 1 deletion test/rollup/iife/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ export default {
format: 'iife',
name: 'RunFastCheck'
},
plugins: [resolve(), cjs()]
plugins: [resolve(), cjs()],
onwarn: warning => {
throw warning;
}
};

0 comments on commit 9dab087

Please sign in to comment.