Skip to content

Commit a37ac83

Browse files
authored
refactor: remove no-op legacy.proxySsrExternalModules (#20013)
1 parent c1ae9bd commit a37ac83

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/vite/src/node/config.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -513,17 +513,6 @@ export interface ExperimentalOptions {
513513
}
514514

515515
export interface LegacyOptions {
516-
/**
517-
* In Vite 4, SSR-externalized modules (modules not bundled and loaded by Node.js at runtime)
518-
* are implicitly proxied in dev to automatically handle `default` and `__esModule` access.
519-
* However, this does not correctly reflect how it works in the Node.js runtime, causing
520-
* inconsistencies between dev and prod.
521-
*
522-
* In Vite 5, the proxy is removed so dev and prod are consistent, but if you still require
523-
* the old behaviour, you can enable this option. If so, please leave your feedback at
524-
* https://github.com/vitejs/vite/discussions/14697.
525-
*/
526-
proxySsrExternalModules?: boolean
527516
/**
528517
* In Vite 6.0.8 and below, WebSocket server was able to connect from any web pages. However,
529518
* that could be exploited by a malicious web page.
@@ -719,7 +708,6 @@ export const configDefaults = Object.freeze({
719708
removeSsrLoadModule: undefined,
720709
},
721710
legacy: {
722-
proxySsrExternalModules: false,
723711
skipWebSocketTokenCheck: false,
724712
},
725713
logLevel: 'info',

0 commit comments

Comments
 (0)