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
As a developer I want to be able to adjust my Vite config based on whether I'm building the client bundle or the SSR bundle.
Suggested solution
Extend the conditional config to also provide the SSR mode (the documentation currently encourages to set this as a command line flag so the info should be available at config build time?)
One use-case was to make it easier to work around e.g. #8836
Vite SSR causes vite build to be run twice for two different purposes. There's currently no good way to discern between the two when building a config, adding the ssr flag would help.
Another scenario can be seen internally in Vite 2 where the inlineDynamicImports was set to TRUE only for SSR builds. Users of Vite may want to make similar configuration changes or perhaps change the plugins that they run (e.g. run some plugin only for SSR or only for the client bundle).
Description
As a developer I want to be able to adjust my Vite config based on whether I'm building the client bundle or the SSR bundle.
Suggested solution
Extend the conditional config to also provide the SSR mode (the documentation currently encourages to set this as a command line flag so the info should be available at config build time?)
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: