Skip to content

Commit

Permalink
Fix: prevent sourcemap warnings in monorepo "dev" mode (#3744)
Browse files Browse the repository at this point in the history
* fix: avoid esbuild sourcemaps in astro-scripts dev

* chore: changeset
  • Loading branch information
bholmesdev authored Jun 28, 2022
1 parent 855b1da commit fb9ef40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-turtles-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro-scripts': patch
---

Fix: avoid generating sourcemaps for dev builds of the monorepo - prevents Vite warning logs
3 changes: 1 addition & 2 deletions scripts/cmd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const defaultConfig = {
format: 'esm',
platform: 'node',
target: 'node14',
sourcemap: 'inline',
sourcemap: false,
sourcesContent: false,
};

Expand Down Expand Up @@ -61,7 +61,6 @@ export default async function build(...args) {
if (!isDev) {
await esbuild.build({
...config,
sourcemap: false,
bundle: false,
entryPoints,
outdir,
Expand Down

0 comments on commit fb9ef40

Please sign in to comment.