Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev-server): use ssrLoadModule instead of Runtime API #138

Merged
merged 2 commits into from
May 10, 2024

Conversation

yusukebe
Copy link
Member

With this PR, the dev server will use server.ssrLoadModule instead of the Runtime API introduced by #129.

The runtime API seems good. But after #129, the problem is that the dev server crashes if the Hono application has an error. Ref #132.

The best solution is to find a way to fix the issue while continuing to use Runtime API. However, I can't find a way, so I'll revert it. In the future, the Vite Enviroment API will be introduced and be stable, we can use it!

Fixes #132
Revert #129

Copy link

changeset-bot bot commented May 10, 2024

🦋 Changeset detected

Latest commit: 5e41468

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/vite-dev-server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yusukebe yusukebe merged commit 6dd041a into main May 10, 2024
2 checks passed
@yusukebe yusukebe deleted the fix/revert-129 branch May 10, 2024 01:30
@github-actions github-actions bot mentioned this pull request May 10, 2024
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.

Vite dev server crashes if error is introduced in the Hono Server.
1 participant