You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping to create a minimal config using this repository (thank you!) as a baseline. I'm trying to understand the effect of SSR in Vite's config in the main package.
I was surprised that just setting target: "node20", Vite would still build the main package for the browser. (And electron would fail to run it.) But setting ssr: true seems to force Vite to build main for node. I read through #655 but still don't fully understand.
So my questions are:
is target working as intended? or is it not actually doing anything?
do we really need SSR? is it only to get a node build?
I guess I feel worried setting SSR just to get a node build, because my app doesn't actually use SSR. But I'm very new to electron so I'm probably missing a lot.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm hoping to create a minimal config using this repository (thank you!) as a baseline. I'm trying to understand the effect of SSR in Vite's config in the main package.
Referencing these couple lines:
I was surprised that just setting
target: "node20"
, Vite would still build the main package for the browser. (And electron would fail to run it.) But settingssr: true
seems to force Vite to build main for node. I read through #655 but still don't fully understand.So my questions are:
target
working as intended? or is it not actually doing anything?I guess I feel worried setting SSR just to get a node build, because my app doesn't actually use SSR. But I'm very new to electron so I'm probably missing a lot.
Thank you for any insights! 🙏
Beta Was this translation helpful? Give feedback.
All reactions