Skip to content

Commit

Permalink
Fix: prevent sourcemap warnings in monorepo "dev" mode (withastro#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 e497358 commit bcac688
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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 bcac688

Please sign in to comment.