OptionalinconsistentOptionalskipIn Vite 6.0.8 and below, WebSocket server was able to connect from any web pages. However, that could be exploited by a malicious web page.
In Vite 6.0.9+, the WebSocket server now requires a token to connect from a web page. But this may break some plugins and frameworks that connects to the WebSocket server on their own. Enabling this option will make Vite skip the token check.
We do not recommend enabling this option unless you are sure that you are fine with that security weakness.
Opt-in to the pre-Vite 8 CJS interop behavior, which was inconsistent.
In pre-Vite 8 versions, Vite had inconsistent CJS interop behavior. This was due to the different behavior of esbuild and the Rollup commonjs plugin. Vite 8+ uses Rolldown for both the dependency optimization in dev and the production build, which aligns the behavior to esbuild.
See the Vite 8 migration guide for more details.