Skip to content

Conversation

@robinsadeghpour
Copy link
Contributor

Closes #69

Add -e, --external <package> option to hono request and hono serve commands to mark packages as external during bundling. This is useful for Node.js native modules like database drivers (pg, mysql2) and ORMs (Prisma, Drizzle).

The option can be used multiple times:

hono request -e pg -e dotenv src/app.ts
hono serve -e pg -e prisma src/app.ts

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 @robinsadeghpour

Thank you for the PR. Looks good! I'll merge and release a new version.

@yusukebe yusukebe merged commit 4222ab3 into honojs:main Jan 27, 2026
4 checks passed
@robinsadeghpour robinsadeghpour deleted the feat/external-flag branch January 27, 2026 09:18
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.

Add --external flag to hono request command for marking packages as external

2 participants