Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect vite ssr option in first place when transforming. #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MrFoxPro
Copy link

@MrFoxPro MrFoxPro commented Jul 16, 2023

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

@MrFoxPro MrFoxPro changed the title Respect vite ssr option in first place Respect vite SSR option in first place Jul 16, 2023
@MrFoxPro MrFoxPro changed the title Respect vite SSR option in first place Respect vite ssr option in first place when transforming. Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant