vite-plugin-solid icon indicating copy to clipboard operation
vite-plugin-solid copied to clipboard

Respect vite `ssr` option in first place when transforming.

Open 0x241F31 opened this issue 2 years ago • 0 comments

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

0x241F31 avatar Jul 16 '23 17:07 0x241F31