Skip to content

Commit

Permalink
Mute annoying vite rollup sourcemap warning:
Browse files Browse the repository at this point in the history
  • Loading branch information
AJGeel committed Nov 3, 2024
1 parent 3a05e5c commit 86aaa83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export default defineConfig({
output: {
entryFileNames: (chunk) => `src/pages/${chunk.name}/index.js`,
},
onwarn(warning, defaultHandler) {
return warning.code === "SOURCEMAP_ERROR"
? null
: defaultHandler(warning);
},
},
sourcemap: process.env.__DEV__ === "true",
},
Expand Down

0 comments on commit 86aaa83

Please sign in to comment.