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:
@@ -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;
|
||||
};
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user