diff --git a/vite.config.ts b/vite.config.ts index e0d0f0bf..4e2749cd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,6 +13,15 @@ export default defineConfig(({ mode }) => { build: { sourcemap: true, outDir: '../build', + rollupOptions: { + onwarn(warning, defaultHandler) { + // See: https://github.com/vitejs/vite/issues/15012 + if (warning.code === 'SOURCEMAP_ERROR') { + return; + } + defaultHandler(warning); + }, + }, }, server: { port: 3000,