Skip to content

Is SSR needed in main? #1003

Answered by cawa-93
mbforbes asked this question in Q&A
Aug 2, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote
  • The 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, term ssr 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 internal node packages.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mbforbes
Comment options

@cawa-93
Comment options

Answer selected by mbforbes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants