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

Use @cloudflare/vite-plugin with Cloudflare template #1278

Closed
rmarscher opened this issue Mar 1, 2025 · 2 comments
Closed

Use @cloudflare/vite-plugin with Cloudflare template #1278

rmarscher opened this issue Mar 1, 2025 · 2 comments

Comments

@rmarscher
Copy link
Contributor

Currently, our Cloudflare template enhances Hono to provide access to bindings and execution context when running waku dev.

@cloudflare/vite-plugin has been released and it would probably be better to use that instead. It looks like it uses Vite's environment API, so I assume it is blocked by Migrate to Vite Environment API on the Waku roadmap.

@dai-shi
Copy link
Owner

dai-shi commented Mar 2, 2025

Migrate to Vite Environment API

ETA is unknown. It's almost rewriting entirely, and I might even consider it after v1-final...

@rmarscher
Copy link
Contributor Author

I took a look at the plugin source. It creates a Vite environment for the server worker and a client environment. It looks like it will be difficult to integrate with waku dev so this is probably a wont-fix for now. Maybe possible to integrate it later or to borrow code from it to understand how to use the workerd runtime with the vite environment api and waku server engine.

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

No branches or pull requests

2 participants