Skip to content

Commit e408b0c

Browse files
committed
fix(build): only enable sourcemaps if not building for production
1 parent 7b44fd5 commit e408b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default defineConfig({
3535
},
3636

3737
build: {
38-
sourcemap: true,
38+
sourcemap: process.env.NODE_ENV !== 'production',
3939
target: 'esnext', // Support top-level await
4040
},
4141
});

0 commit comments

Comments
 (0)