feat: supress "use client" warnings in charts build with nebula build (#1349)

* feat: supress "use client" warnings in charts build with nebula build

"use client" warnings coming from MUI bundling

* fix: set parcel version to 2.8.0

to not get https://github.com/parcel-bundler/parcel/issues/9224
This commit is contained in:
Tobias Linsefors
2023-09-05 10:08:22 +02:00
committed by GitHub
parent efac6cd686
commit de007249e1
2 changed files with 8 additions and 1 deletions

View File

@@ -115,6 +115,13 @@ const config = ({
return {
input: {
onwarn(warning, warn) {
// Supress "use client" warnings coming from MUI bundling
if (warning.code === 'MODULE_LEVEL_DIRECTIVE' && warning.message.includes(`"use client"`)) {
return;
}
warn(warning);
},
input: path.resolve(CWD, 'src/index'),
external,
plugins: [

View File

@@ -15,6 +15,6 @@
"@nebula.js/sn-bar-chart": "^1.x",
"@qlik/sdk": "^0.12.0",
"enigma.js": "^2.6.3",
"parcel": "^2.7.0"
"parcel": "2.8.0"
}
}