Clear and concise description of the problem
I'm building both "ssr" and "client" using Vite Environment API. It seems like DevTools is spending a lot of time analyzing both bundles when it doesn't need to analyze the ssr environment at all. I would love if there was a way to select only client considering that Environments are beginning to be quite popular (RSC, Cloudflare etc.)
Suggested solution
Additional devtools.environments option which by default could be ['client']. This way the simplicity of devtools: true could remain if someone wanted only the client environment.
Alternative
I was thinking of maybe as a consumer doing it myself by importing the DevTools plugin and manually filtering the plugin to client using applyToEnvironment, but I'd need to get acquainted with some of the internals for that because DevTools() doesn't return a single plugin object.
So no substantial alterantive really comes to mind.
Additional context
No response
Validations
Clear and concise description of the problem
I'm building both "ssr" and "client" using Vite Environment API. It seems like DevTools is spending a lot of time analyzing both bundles when it doesn't need to analyze the
ssrenvironment at all. I would love if there was a way to select onlyclientconsidering that Environments are beginning to be quite popular (RSC, Cloudflare etc.)Suggested solution
Additional
devtools.environmentsoption which by default could be['client']. This way the simplicity ofdevtools: truecould remain if someone wanted only theclientenvironment.Alternative
I was thinking of maybe as a consumer doing it myself by importing the
DevToolsplugin and manually filtering the plugin toclientusingapplyToEnvironment, but I'd need to get acquainted with some of the internals for that becauseDevTools()doesn't return a single plugin object.So no substantial alterantive really comes to mind.
Additional context
No response
Validations