Skip to content

build: eliminate tsdown bundle warnings - #1607

Merged
thymikee merged 1 commit into
mainfrom
agent/tsdown-bundle-warnings
Aug 5, 2026
Merged

build: eliminate tsdown bundle warnings#1607
thymikee merged 1 commit into
mainfrom
agent/tsdown-bundle-warnings

Conversation

@thymikee

@thymikee thymikee commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

Allowlist the intentionally bundled pngjs dependency and replace two dynamic provider imports that Rolldown confirmed could not split.

The emitted bundle is 307 bytes smaller overall (114 bytes gzip); the daemon entry is 310 bytes smaller (134 bytes gzip). Build output no longer reports the dependency or ineffective-dynamic-import warnings.

Validation

pnpm check:affected --run passed all runnable checks, including affected coverage, provider-backed integration, Node integration, package verification, and replay-compat provenance.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.97 MB 1.97 MB -310 B
JS gzip 631.7 kB 631.5 kB -125 B
npm tarball 761.6 kB 761.5 kB -109 B
npm unpacked 2.67 MB 2.67 MB -310 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 21.6 ms 22.3 ms +0.7 ms
CLI --help 51.2 ms 51.7 ms +0.5 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/internal/daemon.js -312 B -122 B
dist/src/session.js 0 B -4 B
dist/src/selector-runtime.js 0 B +2 B
dist/src/interaction.js +1 B 0 B

@thymikee

thymikee commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Reviewed exact head 3d7e9fa76: no code findings. onlyBundle is the intended tsdown whitelist, the static imports preserve wrapper selection/ordering without eager tool/process work, and the exact-head package job proves warning-free build, dependency closure, all public entry imports, and packaged CLI execution.

The sole red check is unrelated: daemon-replace-exit-flush.test.ts expected the deliberately naïve pipe write to truncate, but this runner flushed it. Recent main passed the same test. I requested a failed-job rerun; ready once that clears.

@thymikee

thymikee commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Follow-up: the failed-job rerun (92265262037) reproduced the same failure in test/integration/daemon-replace-exit-flush.test.ts:95: on this runner, the deliberately naïve process.exit() pipe write flushed instead of truncating. This is now an owner-action CI blocker. Please make the shared integration test deterministic, or rebase this PR after that lands on main; no change is requested to #1607’s two-file diff.

@thymikee
thymikee force-pushed the agent/tsdown-bundle-warnings branch from 3d7e9fa to c8c677f Compare August 5, 2026 16:07
@thymikee
thymikee merged commit 98fa7b9 into main Aug 5, 2026
28 checks passed
@thymikee
thymikee deleted the agent/tsdown-bundle-warnings branch August 5, 2026 16:24
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-05 16:24 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