vite-plugin-solid
vite-plugin-solid copied to clipboard
Respect vite `ssr` option in first place when transforming.
Consider the case: some tool need to load module with Solid JSX. I hit this problem two times: in Vite plugin for prerendering certain pages, and now with css-in-js plugin, because I need to extract css from module.
It's impossible to ssrLoadModule if neither ssr: true nor solid: { generate: 'ssr' } is explicitly set. At the same time, I don't need to generate SSR bundle for whole app, otherwise it will break my app.
Related #64