In Vite 4, SSR-externalized modules (modules not bundled and loaded by Node.js at runtime)
are implicitly proxied in dev to automatically handle default and __esModule access.
However, this does not correctly reflect how it works in the Node.js runtime, causing
inconsistencies between dev and prod.
In Vite 5, the proxy is removed so dev and prod are consistent, but if you still require
the old behaviour, you can enable this option. If so, please leave your feedback at
https://github.com/vitejs/vite/discussions/14697.
In Vite 4, SSR-externalized modules (modules not bundled and loaded by Node.js at runtime) are implicitly proxied in dev to automatically handle
default
and__esModule
access. However, this does not correctly reflect how it works in the Node.js runtime, causing inconsistencies between dev and prod.In Vite 5, the proxy is removed so dev and prod are consistent, but if you still require the old behaviour, you can enable this option. If so, please leave your feedback at https://github.com/vitejs/vite/discussions/14697.