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