vite-node
: How do I use it for SSR? I can't find a minimal example anywhere.
#3264
Replies: 1 comment 3 replies
-
Isn't readme not enough to understand the concept? Instead of I don't know how vavite works, so I cannot tell the difference between them. However the main difference between the previous approach is that the server is split in two - the part that transforms modules and keeps track of |
Beta Was this translation helpful? Give feedback.
-
I just read the discussion yesterday for Vite 5, and one thing that stood out to me was that the team is considering moving
vite-node
to Vite core "as an alternative to Vite's current SSR primitives to add support for source maps and HMR during SSR".Currently, Vite's SSR guide does a good job of breaking down how to set up Vite to develop and build an SSR project. Furthermore, there's a great example project which can be used as a great starting point and as a reference.
For
vite-node
I can't find any such resources. Anywhere. How do I use it? What exactly is the "server" versus the "runner"? How is it different fromvavite
?Would someone who is familiar with
vite-node
be willing to put together a minimal example of it like Vite's existingplayground/ssr-vue
one? For me, that would be enough to get a solid grasp on how to use it and what role it plays. It also seems easier than writing a guide, but that's just my opinion.Beta Was this translation helpful? Give feedback.
All reactions