Disable sourcemaps for build (#2806)
* fix: disable sourcemaps for build * chore: add changeset
This commit is contained in:
parent
79282163e2
commit
9e59ec921f
2 changed files with 6 additions and 0 deletions
5
.changeset/spicy-chicken-pump.md
Normal file
5
.changeset/spicy-chicken-pump.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix a warning from Vite regarding internal sourcemaps
|
|
@ -38,6 +38,7 @@ export default async function build(...args) {
|
|||
if (!isDev) {
|
||||
await esbuild.build({
|
||||
...config,
|
||||
sourcemap: false,
|
||||
bundle: entryPoints.length === 1, // Note: only use `bundle` with a single entrypoint!
|
||||
entryPoints,
|
||||
outdir,
|
||||
|
|
Loading…
Reference in a new issue