Skip to content

Commit 49efc34

Browse files
committed
refactor: remove options.ssr handling in transformRequest
1 parent 477921b commit 49efc34

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/vite/src/node/server/transformRequest.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ export function transformRequest(
7171
url: string,
7272
options: TransformOptions = {},
7373
): Promise<TransformResult | null> {
74-
// Backward compatibility when only `ssr` is passed
75-
if (!options.ssr) {
76-
// Backward compatibility
77-
options = { ...options, ssr: environment.config.consumer === 'server' }
78-
}
79-
8074
if (environment._closing && environment.config.dev.recoverable)
8175
throwClosedServerError()
8276

0 commit comments

Comments
 (0)