We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4f238 commit e52908dCopy full SHA for e52908d
1 file changed
website/astro.config.mjs
@@ -115,7 +115,12 @@ export default defineConfig({
115
trailingSlash: "always",
116
vite: {
117
build: {
118
- sourcemap: true,
+ // 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,
124
},
125
css: {
126
devSourcemap: true,
0 commit comments