-
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 So my questions are:
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.
Replies: 2 comments 2 replies
-
In context of |
Beta Was this translation helpful? Give feedback.
-
I had the same question, and I found that another thing |
Beta Was this translation helpful? Give feedback.
target
property used by transpires. It defines what language features can be used and for what polyfill is needed, what CSS properties need vendor prefix, etc.ssr: true
define a javascript runtime.In context of
main
module, termssr
doesn't mean anything because main doesn't render anything. And this option don't bring anithind extra in runtime. It is just a easy way to tell Vite to build some code and do not scary internalnode
packages.