Skip to content

Commit e52908d

Browse files
committed
Cleaning up some warnings on website build
1 parent 9c4f238 commit e52908d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

website/astro.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ export default defineConfig({
115115
trailingSlash: "always",
116116
vite: {
117117
build: {
118-
sourcemap: true,
118+
// Production sourcemaps trigger a known warning in the expressive-code Vite plugin.
119+
// The docs site does not need emitted JS sourcemaps for its validation build.
120+
sourcemap: false,
121+
// Starlight ships large syntax-highlighting chunks that are expected for this site.
122+
// Raise the threshold so Vite only warns on materially larger regressions.
123+
chunkSizeWarningLimit: 900,
119124
},
120125
css: {
121126
devSourcemap: true,

0 commit comments

Comments
 (0)