chore(client): suppress module level directives warnings

This commit is contained in:
Elian Doran 2025-05-17 23:53:58 +03:00
parent c1ae5b22a1
commit c1648f9742
No known key found for this signature in database

View File

@ -54,7 +54,13 @@ export default defineConfig(() => ({
output: {
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
assetFileNames: "[name].js"
assetFileNames: "[name,].js"
},
onwarn(warning, rollupWarn) {
if (warning.code === "MODULE_LEVEL_DIRECTIVE") {
return;
}
rollupWarn(warning);
}
}
},