Update tsdown to latest version#183
Conversation
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.
|
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
commit: |
dimitropoulos
left a comment
There was a problem hiding this comment.
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.
Summary
Updates tsdown to 0.22.0.
Also:
tsdown --config-loader tsxso older Node 22 builds can still loadtsdown.config.ts.externalwithdeps.neverBundle.bunexternal because Bun declarations reference Bun types.OptionstoUserConfig.Validation
mise x node@22.12.0 -- npm run buildnpm run buildnpm run test:typesnpm run test:bunwrangler devNote on config loader
tsdown@0.22.0requires^22.18.0 || >=24.0.0. Older Node 22 versions, for example 22.10, fail with the default config loader beforetsdown.config.tsis loaded (Failed to import module "unrun").The build scripts use
tsdown --config-loader tsxso this update does not raise the repo’s build-time Node requirement yet.Closes #173