vite-ssr
vite-ssr copied to clipboard
Vite 3.0.0 and 3.1.0 support
I noticed 2 problems. Maybe there is more.
- Starting with vite 3.0.0, the server entry point is built as main.mjs instead of main.js, as it was before.
- Assets folder is building in server mode in v3.1.0.
vite文档上有
vite.config.js
ssr: { format: 'cjs', },