Disable sourcemaps for build (#2806)

* fix: disable sourcemaps for build

* chore: add changeset
This commit is contained in:
Nate Moore 2022-03-15 19:25:24 -05:00 committed by GitHub
parent 79282163e2
commit 9e59ec921f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix a warning from Vite regarding internal sourcemaps

View file

@ -38,6 +38,7 @@ export default async function build(...args) {
if (!isDev) { if (!isDev) {
await esbuild.build({ await esbuild.build({
...config, ...config,
sourcemap: false,
bundle: entryPoints.length === 1, // Note: only use `bundle` with a single entrypoint! bundle: entryPoints.length === 1, // Note: only use `bundle` with a single entrypoint!
entryPoints, entryPoints,
outdir, outdir,