diff --git a/build/next/index.ts b/build/next/index.ts index 73a08933db1..57a33f69d31 100644 --- a/build/next/index.ts +++ b/build/next/index.ts @@ -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,