Skip to content

Commit

Permalink
Merge pull request #845 from remap-keys/silence-warnings-about-mui
Browse files Browse the repository at this point in the history
Ignore warnings about source maps for mui.
  • Loading branch information
yoichiro authored Jun 15, 2024
2 parents bad0c10 + 45fe8f8 commit 94a798e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 94a798e

Please sign in to comment.