From c1648f97421b5775eba7eb36980de5185a13e132 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 17 May 2025 23:53:58 +0300 Subject: [PATCH] chore(client): suppress module level directives warnings --- apps/client/vite.config.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/client/vite.config.ts b/apps/client/vite.config.ts index 9f4d90309..7776dde30 100644 --- a/apps/client/vite.config.ts +++ b/apps/client/vite.config.ts @@ -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); } } },