Enable preserveSource (#1309)
This commit is contained in:
@@ -125,6 +125,7 @@ function getPlugins(options = {}) {
|
|||||||
webWorkerLoader({
|
webWorkerLoader({
|
||||||
targetPlatform: 'browser',
|
targetPlatform: 'browser',
|
||||||
inline: true,
|
inline: true,
|
||||||
|
preserveSource: true,
|
||||||
sourceMap,
|
sourceMap,
|
||||||
}),
|
}),
|
||||||
esbuild({
|
esbuild({
|
||||||
@@ -144,7 +145,11 @@ for (const c of baseConfigs) {
|
|||||||
resolve({ browser: true }),
|
resolve({ browser: true }),
|
||||||
|
|
||||||
// supports bundling `web-worker:..filename`
|
// supports bundling `web-worker:..filename`
|
||||||
webWorkerLoader({ targetPlatform: 'browser' }),
|
webWorkerLoader({
|
||||||
|
targetPlatform: 'browser',
|
||||||
|
inline: true,
|
||||||
|
preserveSource: true,
|
||||||
|
}),
|
||||||
|
|
||||||
typescript(),
|
typescript(),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user