feat: support setting production source maps on builder (#3151)

This adds a new `sourceMap` option on the `Builder` configuration. This
can be used to optionally specify how production source maps should be
generated.

See https://esbuild.github.io/api/#source-maps for more information.
This commit is contained in:
Marvin Hagemeister
2025-07-29 21:20:15 +02:00
committed by GitHub
parent c30e46ec30
commit 9d769f3cf1
4 changed files with 87 additions and 4 deletions
+7
View File
@@ -42,6 +42,13 @@ const builder = new Builder({
routeDir?: string;
// File paths which should be ignored
ignore?: RegExp[];
// Optionally generate production source maps
// See https://esbuild.github.io/api/#source-maps
sourceMap?: {
kind?: boolean | 'linked' | 'inline' | 'external' | 'both';
sourceRoot?: string;
sourcesContent?: boolean;
};
})
```