mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
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:
@@ -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: [
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user