Skip to content

Update tsdown to latest version#183

Merged
teamchong merged 1 commit into
cloudflare:mainfrom
teamchong:update-tsdown-latest-173
May 22, 2026
Merged

Update tsdown to latest version#183
teamchong merged 1 commit into
cloudflare:mainfrom
teamchong:update-tsdown-latest-173

Conversation

@teamchong
Copy link
Copy Markdown
Collaborator

@teamchong teamchong commented May 22, 2026

Summary

Updates tsdown to 0.22.0.

Also:

  • Uses tsdown --config-loader tsx so older Node 22 builds can still load tsdown.config.ts.
  • Replaces deprecated external with deps.neverBundle.
  • Marks bun external because Bun declarations reference Bun types.
  • Updates the config type from Options to UserConfig.

Validation

  • mise x node@22.12.0 -- npm run build
  • npm run build
  • npm run test:types
  • npm run test:bun
  • Node dist smoke test
  • Bun dist smoke test
  • Local Worker smoke test with wrangler dev

Note on config loader

tsdown@0.22.0 requires ^22.18.0 || >=24.0.0. Older Node 22 versions, for example 22.10, fail with the default config loader before tsdown.config.ts is loaded (Failed to import module "unrun").
The build scripts use tsdown --config-loader tsx so this update does not raise the repo’s build-time Node requirement yet.

Closes #173

Use tsdown's explicit tsx config loader so older Node 22 builds can still load tsdown.config.ts.

Replace deprecated external config with deps.neverBundle and update the config type to UserConfig.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 22, 2026

⚠️ No Changeset found

Latest commit: 832b92a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@teamchong
Copy link
Copy Markdown
Collaborator Author

I have read the CLA Document and I hereby sign the CLA

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 22, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/capnweb@183

commit: 832b92a

github-actions Bot added a commit that referenced this pull request May 22, 2026
@dimitropoulos dimitropoulos self-requested a review May 22, 2026 17:53
Copy link
Copy Markdown
Collaborator

@dimitropoulos dimitropoulos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please just document (by adding to the PR description) the specific finding on 22.10 and needing the tsdown flag in the package.json so people in the future can find out why it's there.

@teamchong teamchong merged commit 3d17ba1 into cloudflare:main May 22, 2026
5 of 6 checks passed
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.

update tsdown to latest version

2 participants