fix: hide rollup circular and eval

This commit is contained in:
Pooya Parsa 2020-11-20 22:04:48 +01:00
parent 82f6db6bca
commit 5c8ac226f1
1 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,12 @@ export const getRollupConfig = (sigmaContext: SigmaContext) => {
preferConst: true
},
external,
plugins: []
plugins: [],
onwarn (warning, rollupWarn) {
if (!['CIRCULAR_DEPENDENCY', 'EVAL'].includes(warning.code)) {
rollupWarn(warning)
}
}
}
if (sigmaContext.timing) {