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
{{ message }}
Repository navigation
Commit 1c13813
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ hono build [entry] [options]
107
107
With the `--optimize` option, it also applies Hono-specific optimizations to reduce bundle size:
108
108
109
109
-**Router optimization**: Replaces the router with a prebuilt router for your routes
110
-
-**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
110
+
-**Request body API removal**: Removes request body APIs (`c.req.json()`, `c.req.formData()`, etc.) when every route method is strictly GET, HEAD, or OPTIONS. A route or middleware registered with `all()` or `use()` keeps the APIs, because it may read the request body
111
111
-**Context response API removal**: Removes unused response utility APIs (`c.body()`, `c.json()`, `c.text()`, `c.html()`, `c.redirect()`) from Context object
112
112
-**Hono API removal**: Removes unused Hono methods (`route`, `mount`, `fire`) that are only used during application initialization
113
113
@@ -121,7 +121,7 @@ With the `--optimize` option, it also applies Hono-specific optimizations to red
121
121
-`-m, --minify` - minify output file
122
122
-`-t, --target [target]` - environment target
123
123
-`--optimize` - apply Hono-specific optimizations
124
-
-`--no-request-body-api-removal` - Disable request body API removal optimization
124
+
-`--request-body-api-removal <mode>` - Request body API removal mode: `auto` (default), `force`, or `disable`
125
125
-`--no-context-response-api-removal` - Disable response utility API removal from Context object
126
126
-`--no-hono-api-removal` - Disable Hono API removal optimization
127
127
-`--plain` - human-readable output instead of JSON
0 commit comments