Change sourcemap option from 'external' to 'linked' for better debugging support (#295569)

This commit is contained in:
Johannes Rieken
2026-02-16 12:55:58 +01:00
committed by GitHub
parent 6d2c0f2b27
commit b82bde5026

View File

@@ -466,7 +466,7 @@ async function compileStandaloneFiles(outDir: string, doMinify: boolean, target:
format: 'cjs', // CommonJS for Electron preload
platform: 'node',
target: ['es2024'],
sourcemap: 'external',
sourcemap: 'linked',
sourcesContent: false,
minify: doMinify,
banner: { js: banner },
@@ -781,7 +781,7 @@ ${tslib}`,
platform: 'neutral',
target: ['es2024'],
packages: 'external',
sourcemap: 'external',
sourcemap: 'linked',
sourcesContent: true,
minify: doMinify,
treeShaking: true,
@@ -833,7 +833,7 @@ ${tslib}`,
platform: 'node',
target: ['es2024'],
packages: 'external',
sourcemap: 'external',
sourcemap: 'linked',
sourcesContent: true,
minify: doMinify,
treeShaking: true,