mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
chore(client): suppress module level directives warnings
This commit is contained in:
@@ -54,7 +54,13 @@ export default defineConfig(() => ({
|
|||||||
output: {
|
output: {
|
||||||
entryFileNames: "[name].js",
|
entryFileNames: "[name].js",
|
||||||
chunkFileNames: "[name].js",
|
chunkFileNames: "[name].js",
|
||||||
assetFileNames: "[name].js"
|
assetFileNames: "[name,].js"
|
||||||
|
},
|
||||||
|
onwarn(warning, rollupWarn) {
|
||||||
|
if (warning.code === "MODULE_LEVEL_DIRECTIVE") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
rollupWarn(warning);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user