diff --git a/build/esbuild.ts b/build/esbuild.ts index f4e68022220..841a16ae2bc 100644 --- a/build/esbuild.ts +++ b/build/esbuild.ts @@ -288,7 +288,8 @@ async function createTranspileContext(outDir: string, excludeTests: boolean): Pr format: 'esm', target: ['es2024'], platform: 'neutral', - sourcemap: isBundle ? 'external' : 'inline', + // sourcemap: isBundle ? 'external' : 'inline', + sourcemap: 'external', sourcesContent: false, bundle: false, logLevel: 'warning', @@ -470,7 +471,7 @@ async function watch(): Promise { try { if (hasTsChanges) { console.log('[watch] Rebuilding TypeScript...'); - await ctx.cancel(); + // await ctx.cancel(); await ctx.rebuild(); }