From 9e59ec921fe539233a1a22b9f0c34ca3cfd05247 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Tue, 15 Mar 2022 19:25:24 -0500 Subject: [PATCH] Disable sourcemaps for build (#2806) * fix: disable sourcemaps for build * chore: add changeset --- .changeset/spicy-chicken-pump.md | 5 +++++ scripts/cmd/build.js | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/spicy-chicken-pump.md diff --git a/.changeset/spicy-chicken-pump.md b/.changeset/spicy-chicken-pump.md new file mode 100644 index 000000000..c4e41a5f9 --- /dev/null +++ b/.changeset/spicy-chicken-pump.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix a warning from Vite regarding internal sourcemaps diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js index 3a8f1d5b0..6dd78f4fa 100644 --- a/scripts/cmd/build.js +++ b/scripts/cmd/build.js @@ -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,