You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,6 +244,12 @@ hono serve \
244
244
245
245
Generate an optimized Hono class and export bundled file.
246
246
247
+
This command automatically applies the following optimizations to reduce bundle size:
248
+
249
+
-**Request body API removal**: Removes request body APIs (`c.req.json()`, `c.req.formData()`, etc.) when your application only uses GET, HEAD, or OPTIONS methods
250
+
-**Context response API removal**: Removes unused response utility APIs (`c.body()`, `c.json()`, `c.text()`, `c.html()`, `c.redirect()`) from Context object
251
+
-**Hono API removal**: Removes unused Hono methods (`route`, `mount`, `fire`) that are only used during application initialization
0 commit comments