summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2022-03-15 19:25:24 -0500
committerGravatar GitHub <noreply@github.com> 2022-03-15 19:25:24 -0500
commit9e59ec921fe539233a1a22b9f0c34ca3cfd05247 (patch)
tree76291a838cd441efb9e3d908f9d18333af4420bf
parent79282163e229bfe332b1221be3099f751b05807b (diff)
downloadastro-9e59ec921fe539233a1a22b9f0c34ca3cfd05247.tar.gz
astro-9e59ec921fe539233a1a22b9f0c34ca3cfd05247.tar.zst
astro-9e59ec921fe539233a1a22b9f0c34ca3cfd05247.zip
Disable sourcemaps for build (#2806)
* fix: disable sourcemaps for build * chore: add changeset
-rw-r--r--.changeset/spicy-chicken-pump.md5
-rw-r--r--scripts/cmd/build.js1
2 files changed, 6 insertions, 0 deletions
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,