Closed thelinuxlich closed 3 years ago
What version are you using?
A working example: https://github.com/brillout/vite-plugin-ssr#markdown
I'm using latest. I don't want to use vite-plugin-ssr because it does too much :(
You can try to add it to ssr.noExternal
, see https://vitejs.dev/guide/ssr.html#ssr-externals
because it does too much
In what way does vite-plugin-ssr do too much for you? What are you building?
vite-plugin-ssr may or may not be the right tool for you but note that, unlike Next.js, it doesn't tie your hands. The reason I built vite-plugin-ssr was because I wanted to use an SSR solution that doesn't take control away from me.
Your suggestion worked! I already have a simple poor man's SSR in my project: https://github.com/thelinuxlich/react-modern-starter
@thelinuxlich Note that starting with v3.2.2
you will not need to add it to ssr.noExternal
.
I don't know if it's specific to this plugin but when I try to run a simple static page with it using SSR it throws this error: