Fix: prevent sourcemap warnings in monorepo "dev" mode (#3744)
* fix: avoid esbuild sourcemaps in astro-scripts dev * chore: changeset
This commit is contained in:
parent
855b1daba9
commit
fb9ef4019b
2 changed files with 6 additions and 2 deletions
5
.changeset/eighty-turtles-drive.md
Normal file
5
.changeset/eighty-turtles-drive.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro-scripts': patch
|
||||
---
|
||||
|
||||
Fix: avoid generating sourcemaps for dev builds of the monorepo - prevents Vite warning logs
|
|
@ -12,7 +12,7 @@ const defaultConfig = {
|
|||
format: 'esm',
|
||||
platform: 'node',
|
||||
target: 'node14',
|
||||
sourcemap: 'inline',
|
||||
sourcemap: false,
|
||||
sourcesContent: false,
|
||||
};
|
||||
|
||||
|
@ -61,7 +61,6 @@ export default async function build(...args) {
|
|||
if (!isDev) {
|
||||
await esbuild.build({
|
||||
...config,
|
||||
sourcemap: false,
|
||||
bundle: false,
|
||||
entryPoints,
|
||||
outdir,
|
||||
|
|
Loading…
Reference in a new issue