Skip to content

use tsdown, update deps, slim bundles#554

Merged
threepointone merged 1 commit intomainfrom
update-deps
Oct 10, 2025
Merged

use tsdown, update deps, slim bundles#554
threepointone merged 1 commit intomainfrom
update-deps

Conversation

@threepointone
Copy link
Copy Markdown
Contributor

we were bundling external modules into the main release, fixed that
also tsdown is just faster (and maintained)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 10, 2025

🦋 Changeset detected

Latest commit: 71cc2c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
hono-agents Patch
agents Patch

Not sure what this means? Click here to learn what changesets are.

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Oct 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@554

commit: 71cc2c1

@threepointone
Copy link
Copy Markdown
Contributor Author

threepointone commented Oct 10, 2025

In CI

npm run build goes from ~20 seconds to ~10 seconds

@threepointone threepointone merged commit 2cc0f02 into main Oct 10, 2025
3 checks passed
@threepointone threepointone deleted the update-deps branch October 10, 2025 17:01
@threepointone threepointone mentioned this pull request Oct 10, 2025
@threepointone
Copy link
Copy Markdown
Contributor Author

package size whent from 922kb to 217 kb (excluding sourcemaps)

"cloudflare:workers",
"cloudflare:email",
"@ai-sdk/react",
"ai",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking into this.

I believe this change is causing a Vite bundling issue that wasn't present prior.

Image

Clearing node_modules/.vite and such to figure out if it's related to this or something in the project.

(I did run into my own set of issues with tsdown that caused me to go back to https://github.com/colinhacks/zshy)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, I had to go back to 0.2.9 for my app to continue working.

Image

I'll see if I can narrow down the difference in code between the two bundles...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed in 0.2.12

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.

2 participants