Skip to content

fix: name split declaration chunks#1127

Merged
thymikee merged 1 commit into
mainfrom
fix/dts-code-splitting-groups
Jul 6, 2026
Merged

fix: name split declaration chunks#1127
thymikee merged 1 commit into
mainfrom
fix/dts-code-splitting-groups

Conversation

@thymikee

@thymikee thymikee commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

Name Rolldown code-splitting groups for public SDK shared chunks so rolldown-plugin-dts receives matching .d declaration chunk names.

Before, generated declaration imports pointed at implicit shared chunks such as contracts2, io2, and remote-config-schema. After, they point at explicit SDK chunks such as sdk-contracts, sdk-io, and sdk-remote-config.

Measured impact is effectively neutral: npm dry-run tarball changed by +34 bytes, unpacked size by +219 bytes, and total JS+DTS gzip by -165 bytes.

Validation

Validated with focused formatter, lint, typecheck, layering, MCP metadata check, and tsdown build. Also compared before/after build output, declaration import targets, dist/src file counts/bytes, and npm dry-run package size.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.5 MB 1.5 MB +487 B
JS gzip 491.8 kB 492.5 kB +668 B
npm tarball 597.4 kB 597.4 kB -3 B
npm unpacked 2.1 MB 2.1 MB +219 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 28.3 ms 28.2 ms -0.2 ms
CLI --help 52.2 ms 53.0 ms +0.9 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/sdk-android-adb.js +20.5 kB +7.2 kB
dist/src/snapshot2.js +16.2 kB +5.6 kB
dist/src/sdk-batch.js +15.9 kB +4.0 kB
dist/src/logcat.js -8.0 kB -2.6 kB
dist/src/cli.js -2.1 kB -421 B

@thymikee thymikee merged commit 8a8ebca into main Jul 6, 2026
21 checks passed
@thymikee thymikee deleted the fix/dts-code-splitting-groups branch July 6, 2026 09:17
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-06 09:18 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant