Skip to content

build: remove esbuild and build as esm format #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025

Conversation

ryoppippi
Copy link
Contributor

Hi! Thank you for creating hono as always!!

In this PR,

  • changed from cjs to esm(I fixed package.json and build config)
  • use bun build instead of esbuild

As a result, build time is slightly faster (on my m3 Pro macbook pro 230ms -> 110ms), and the bundle size is 520kb -> 460kb!

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

Hi @ryoppippi

This is awesome PR. Looks good. This will reduce the bin size, and that change will big impact for the user. So, I'll release a new minor version after merging. Thanks!

@yusukebe yusukebe merged commit fde65bb into honojs:main May 13, 2025
3 checks passed
@ryoppippi ryoppippi deleted the bun-build branch May 13, 2025 10:34
@ryoppippi
Copy link
Contributor Author

@yusukebe Thank you for reviewing!

I believe that libraries like exca and commander can also be replaced by more lightweight ones, and I will send PRs about them in my spare time!

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