Skip to content

preTransformRequests disabled on browser mode #10745

Description

@hi-ogawa

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.

Activity

  1. locked and limited conversation to collaborators on Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions