Disabling warnings for eval (required).
This commit is contained in:
parent
77621f87b6
commit
cd694cb312
|
@ -12,6 +12,13 @@ export default {
|
||||||
format: "esm",
|
format: "esm",
|
||||||
file: "dist/bbui.es.js",
|
file: "dist/bbui.es.js",
|
||||||
},
|
},
|
||||||
|
onwarn(warning, warn) {
|
||||||
|
// suppress eval warnings
|
||||||
|
if (warning.code === "EVAL") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
warn(warning)
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
resolve(),
|
resolve(),
|
||||||
commonjs(),
|
commonjs(),
|
||||||
|
|
|
@ -45,7 +45,8 @@ export default {
|
||||||
onwarn(warning, warn) {
|
onwarn(warning, warn) {
|
||||||
if (
|
if (
|
||||||
warning.code === "THIS_IS_UNDEFINED" ||
|
warning.code === "THIS_IS_UNDEFINED" ||
|
||||||
warning.code === "CIRCULAR_DEPENDENCY"
|
warning.code === "CIRCULAR_DEPENDENCY" ||
|
||||||
|
warning.code === "EVAL"
|
||||||
) {
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue