Skip to content

Commit 45fe8f8

Browse files
committed
Ignore warnings about source maps for mui.
1 parent bad0c10 commit 45fe8f8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vite.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ export default defineConfig(({ mode }) => {
1313
build: {
1414
sourcemap: true,
1515
outDir: '../build',
16+
rollupOptions: {
17+
onwarn(warning, defaultHandler) {
18+
// See: https://github.com/vitejs/vite/issues/15012
19+
if (warning.code === 'SOURCEMAP_ERROR') {
20+
return;
21+
}
22+
defaultHandler(warning);
23+
},
24+
},
1625
},
1726
server: {
1827
port: 3000,

0 commit comments

Comments
 (0)