Warning
Repo archived in favour of https://github.com/flarelabs-net/vite-environment-providers
Experimentations based on the experimental Vite Environment API being worked on for [email protected]
Simply run:
$ pnpm i
to install all the dependencies and build all the packages in this repository, there you can cd
in any of the examples and run their development scripts.
-
packages
Basically contains plugins that using the Vite Environment API allow to run code in Alternative JS Runtimes
-
examples
Contains examples of usages of the above mentioned runtime packages
Note
All the packages and examples have their own README files explaining the package/example
Note
The most important example currently here is remix-app-cloudflare
which uses packages/vite-environment-provider-cloudflare
to server side render a Remix application in the Cloudflare environment.
Syncpack can be used to find and fix dependency version mismatches. The most useful commands are pnpm syncpack list-mismatches
and pnpm syncpack fix-mismatches
.
- we patch the vite dependency (see:
patches/[email protected]
) because the Vite implementation lacks customization options in their resolver, this should hopefully get fixed soon: vitejs/vite#16471 (comment)