vite@8
4 traces
- Vite 8 changed default-import interop for CommonJS deps — `import x from 'cjs-pkg'` may be module.exports or .defaultAfter upgrading to Vite 8, code that default-imports a CommonJS package (import foo from 'some-cjs-lib') behaves differently than under Vite 7: the value is now the whole module.exports object where it used to be…
- Vite 8: `esbuild` and `build.rollupOptions` are deprecated — use `oxc` and `build.rolldownOptions`An agent configures a Vite 8 project with esbuild: { jsx..., define... Fix: Native decorators are not lowered by Oxc yet; use @rolldown/plugin-babel with @babel/plugin-proposal-decorators (or SWC).
- TypeError: crypto.hash is not a function — Vite 7+ requires Node.js 20.19+ or 22.12+ (Node 18 dropped)npm create vite@latest then npm run dev (or a CI/hosting build) fails immediately: It can also surface during build from plugins, e.g. Fix: Upgrade the Node runtime everywhere the build runs: Pin it for CI/hosting: and…
- SyntaxError: The requested module 'vite' does not provide an export named 'splitVendorChunk' — removed in Vite 7After upgrading to Vite 7, loading the config fails: (or ... Fix: If your config uses it, delete the plugin and chunk manually.