Skip to content

Commit d2342a1

Browse files
committed
build(cutover): the ui cli build drops sourcesContent through the shared tsup hook (bill item 45, objectstack#25803)
ui/packages/cli/tsup.config.ts sets `sourcemap: true` without the shared `esbuildOptions: dropSourcesContent` hook (scripts/tsup-drop-sources-content.mjs, the pin for #16469), so on the merged tree check:sourcemap-no-sources-content refused its two dist maps for embedding the original source text. The vscode-extension config has the same shape but is private, so the sweep does not read it. Measured: rebuild + gate -> 64 built packages, 590 maps, none embed source text. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RSDL3SFtJaKzcymvCD8RsU
1 parent 0b8ae93 commit d2342a1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎ui/packages/cli/tsup.config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import { defineConfig } from 'tsup';
1010

11+
import { dropSourcesContent } from '../../../scripts/tsup-drop-sources-content.mjs';
12+
1113
export default defineConfig({
1214
entry: {
1315
cli: 'src/cli.ts',
@@ -18,4 +20,5 @@ export default defineConfig({
1820
clean: true,
1921
sourcemap: true,
2022
shims: false,
23+
esbuildOptions: dropSourcesContent,
2124
});

0 commit comments

Comments
 (0)