Skip to content

build: remove esbuild and build as esm format#99

Merged
yusukebe merged 1 commit intohonojs:mainfrom
ryoppippi:bun-build
May 13, 2025
Merged

build: remove esbuild and build as esm format#99
yusukebe merged 1 commit intohonojs:mainfrom
ryoppippi:bun-build

Conversation

@ryoppippi
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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