Simplest example that specifies a handlerEntry
and handles incoming requests.
Clone with:
npx degit cyco130/vavite/examples/simple-standalone
All examples have
"type": "module"
in theirpackage.json
.
- For Vite v2, remove it to use CommonJS (CJS).
- If you want to use CommonJS with Vite v3+, add
legacy.buildSsrCjsExternalHeuristics: true
to your Vite config.