I just realized config and server unification #10554 now forces this disabled on client environment and this can affect perf on browser mode.
Also this came up because preTransformRequests being enabled (previous behavior) can affect mocking if the original module isn't meant to be transformed (manual factory case and mocks case).
The following is an AI write up:
PR #10554 unified each browser project's separate browser Vite server with its project server. This appears to have changed preTransformRequests for browser mode as a side effect.
Before #10554, the separate browser server options disabled HMR and watching but did not set preTransformRequests, so Vite's client default remained enabled. The separate root Vitest server independently set it to false.
After the servers were unified, browser mode inherited the shared server's preTransformRequests: false. The environment plugin also forces it to false for every environment, including the native browser client environment.
I just realized config and server unification #10554 now forces this disabled on client environment and this can affect perf on browser mode.
Also this came up because
preTransformRequestsbeing enabled (previous behavior) can affect mocking if the original module isn't meant to be transformed (manual factory case and mocks case).The following is an AI write up:
PR #10554 unified each browser project's separate browser Vite server with its project server. This appears to have changed
preTransformRequestsfor browser mode as a side effect.Before #10554, the separate browser server options disabled HMR and watching but did not set
preTransformRequests, so Vite's client default remained enabled. The separate root Vitest server independently set it tofalse.After the servers were unified, browser mode inherited the shared server's
preTransformRequests: false. The environment plugin also forces it tofalsefor every environment, including the native browserclientenvironment.