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',
|
format: 'esm',
|
||||||
platform: 'node',
|
platform: 'node',
|
||||||
target: 'node14',
|
target: 'node14',
|
||||||
sourcemap: 'inline',
|
sourcemap: false,
|
||||||
sourcesContent: false,
|
sourcesContent: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -61,7 +61,6 @@ export default async function build(...args) {
|
||||||
if (!isDev) {
|
if (!isDev) {
|
||||||
await esbuild.build({
|
await esbuild.build({
|
||||||
...config,
|
...config,
|
||||||
sourcemap: false,
|
|
||||||
bundle: false,
|
bundle: false,
|
||||||
entryPoints,
|
entryPoints,
|
||||||
outdir,
|
outdir,
|
||||||
|
|
Loading…
Add table
Reference in a new issue