Hi team!
I built a PoC Vite plugin that replaces Hono's default router with a PreparedRegExpRouter at build time.
The full implementation and details are available in the README of my repository:
https://github.com/taku-hatano/hono-jsx-dom-with-vite
Bundle size comparison of dist/_worker.js from vite build:
|
Bundle Size |
| Before |
26.88 kB |
| After |
19.71 kB |
7.17 kB reduction (26.7%)
Note: benchmarks have not been conducted yet.
I hope this could be useful for the team.
Hi team!
I built a PoC Vite plugin that replaces Hono's default router with a
PreparedRegExpRouterat build time.The full implementation and details are available in the README of my repository:
https://github.com/taku-hatano/hono-jsx-dom-with-vite
Bundle size comparison of
dist/_worker.jsfromvite build:7.17 kB reduction (26.7%)
Note: benchmarks have not been conducted yet.
I hope this could be useful for the team.