mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-05 23:21:54 +08:00
chore(client): suppress module level directives warnings
This commit is contained in:
parent
c1ae5b22a1
commit
c1648f9742
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user