Vite 8, released on 12 March 2026, replaces the esbuild-plus-Rollup pair with a single Rust bundler, Rolldown, and moves JavaScript transforms and minification to Oxc. For most projects the upgrade is npm install -D vite@8 plus a few renames: build.rollupOptions becomes build.rolldownOptions, the esbuild option becomes oxc, and optimizeDeps.esbuildOptions becomes optimizeDeps.rolldownOptions. Old options are converted automatically with deprecation warnings, but a handful of behaviors (CommonJS default imports, the object form of manualChunks, native decorators, property mangling) need real changes.

This guide covers what changed, a step-by-step upgrade with before-and-after config, plugin compatibility, and fixes for the errors you are most likely to hit. It is based on the official Vite 8 announcement and the Vite 8 migration guide.

What changed in Vite 8

Before Vite 8, the dev server pre-bundled dependencies and transformed TypeScript and JSX with esbuild, while production builds used Rollup. Two tools meant two sets of behaviors, and occasionally a bug that only appeared in production. Vite 8 uses one toolchain from the VoidZero stack for both:

Job Vite 7 Vite 8
Production bundling Rollup Rolldown
Dependency pre-bundling (dev) esbuild Rolldown
TS/JSX transforms esbuild Oxc
JS minification esbuild (default) Oxc minifier (default)
CSS minification esbuild (default) Lightning CSS (default)
Node.js requirement 20.19+ or 22.12+ 20.19+ or 22.12+ (unchanged)

The Vite team calls this the most significant architectural change since Vite 2. On performance, the announcement says Rolldown is 10–30x faster than Rollup in benchmarks and cites production build-time reductions reported by early adopters during the rolldown-vite preview: Linear went from 46s to 6s, and Ramp, Mercedes-Benz.io, and Beehiiv reported reductions of 57%, up to 38%, and 64% respectively (source). Those are their numbers on their codebases; measure your own.

One trade-off: Vite 8's install is about 15 MB larger than Vite 7, roughly 10 MB from Lightning CSS (now a regular dependency) and 5 MB from Rolldown.

New features you get for free

  • resolve.tsconfigPaths: set it to true and Vite resolves imports using paths from tsconfig.json, so you can drop the vite-tsconfig-paths plugin. It is off by default because it has a small performance cost.
  • Built-in emitDecoratorMetadata support without extra plugins.
  • .wasm?init imports in SSR.
  • server.forwardConsole: forwards browser console output to the terminal; it switches on automatically when Vite detects a coding agent.
  • devtools: an experimental option to enable Vite Devtools for inspecting the dev server and analyzing builds.

Before you upgrade: check your Node.js version

Vite 8 keeps Vite 7's requirement of Node.js 20.19+ or 22.12+. Those versions can require() ES modules, which lets Vite ship as ESM only. Check CI images and Docker base images first:

node --version
# v22.12.0 or later (or v20.19.0+) is required

Step-by-step Vite 8 upgrade

Step 1 (optional): Isolate bundler issues with rolldown-vite

For large projects, the Vite team recommends an intermediate step: rolldown-vite is Vite 7 built on Rolldown with no other Vite 8 changes. If your build breaks there, the cause is the bundler swap, not another Vite 8 change. Point the vite dependency at it with an npm alias:

{
  "devDependencies": {
    "vite": "npm:rolldown-vite@7.2.2"
  }
}

Once that builds and tests cleanly, set "vite": "^8.0.0" and continue.

Step 2: Install Vite 8 and matching plugins

npm install -D vite@8
npm install -D @vitejs/plugin-react@latest   # or plugin-vue, plugin-svelte, etc.
npx vite build

@vitejs/plugin-react v6 uses Oxc for React Refresh and drops its Babel dependency. The announcement says v5 still works with Vite 8, so you can upgrade the plugin separately if you rely on custom Babel plugins.

Step 3: Rename the deprecated options

Here is a realistic Vite 7 config that uses the options affected by the switch:

// vite.config.js (Vite 7)
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [react()],
  esbuild: {
    jsxInject: `import React from 'react'`,
  },
  optimizeDeps: {
    esbuildOptions: {
      loader: { '.js': 'jsx' },
    },
  },
  build: {
    minify: 'esbuild',
    rollupOptions: {
      output: {
        manualChunks: {
          react: ['react', 'react-dom'],
        },
      },
    },
  },
})

The Vite 8 equivalent:

// vite.config.js (Vite 8)
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [react()],
  oxc: {
    jsxInject: `import React from 'react'`,
  },
  optimizeDeps: {
    rolldownOptions: {
      moduleTypes: { '.js': 'jsx' },
    },
  },
  resolve: {
    tsconfigPaths: true,
  },
  build: {
    // 'oxc' is the default for client builds, so `minify` can be omitted
    rolldownOptions: {
      output: {
        codeSplitting: {
          groups: [
            { test: /node_modules[\\/]react(-dom)?[\\/]/, name: 'react' },
          ],
        },
      },
    },
  },
})

What changed and why:

  • esbuild → oxc. The esbuild option is deprecated and converted internally. Options such as jsxInject, include, exclude, define, and the jsx* settings map to Oxc equivalents. esbuild.banner and esbuild.footer have no equivalent and must become a small plugin with a transform hook. esbuild.supported is not supported.
  • optimizeDeps.esbuildOptions → optimizeDeps.rolldownOptions. Still auto-converted, but deprecated. loader becomes moduleTypes; define, mainFields, conditions, resolveExtensions, keepNames, platform, and others are also mapped. You can inspect the result from a plugin's configResolved hook via config.optimizeDeps.rolldownOptions.
  • build.rollupOptions → build.rolldownOptions. The old name is an alias and still works, but is deprecated. Same for worker.rollupOptions → worker.rolldownOptions.
  • manualChunks object form → codeSplitting. The object form is removed and the function form is deprecated. Rolldown's output.codeSplitting.groups takes a list of { test, name } rules; see the Rolldown manual code splitting docs.
  • build.minify: 'esbuild' → default. build.minify now defaults to 'oxc' for client builds. 'esbuild' still works but is deprecated, and requires esbuild installed as a devDependency because esbuild is now optional.

Step 4: Decide what to do about minifier differences

The Oxc minifier and esbuild make different assumptions, so the migration guide asks you to check behavior and report issues. Specific gaps:

  • esbuild.minify* options move to build.rolldownOptions.output.minify.
  • esbuild.drop (dropping console and debugger) maps to the Oxc minifier's compress drop options; see the Oxc dead code elimination docs.
  • Property mangling is not supported (mangleProps, reserveProps, mangleQuoted, mangleCache). If you depend on it, keep build.minify: 'esbuild' for now.
  • CSS is minified by Lightning CSS by default. The guide notes CSS bundles may grow slightly; build.cssMinify: 'esbuild' restores the old behavior (with esbuild installed).

Step 5: Run the build and the dev server, then compare output

npx vite build --debug 2> build.log
npx vite preview

Compare bundle sizes and chunk names against your Vite 7 build, and run end-to-end tests against vite preview. Chunk names usually change when you move from manualChunks to codeSplitting, so update anything that hard-codes them, such as preload hints or CDN cache rules.

Breaking behavior changes to check

CommonJS default imports are now consistent

This is the change most likely to produce a runtime error rather than a build error. Previously, what import pkg from 'cjs-package' returned could differ between dev and build. In Vite 8 the rule is the same everywhere: the default import is module.exports when the importer is .mjs/.mts, when the nearest package.json has "type": "module", or when the CJS module lacks __esModule: true. Otherwise it is module.exports.default.

If a dependency breaks with errors like pkg.default is not a function, the temporary escape hatch is:

export default defineConfig({
  legacy: {
    inconsistentCjsInterop: true,
  },
})

Treat that as a stopgap and report the package to its maintainers.

Other changes from the migration guide

  • Default browser target moved up. build.target's default, 'baseline-widely-available', now means Chrome/Edge 111, Firefox 114, and Safari 16.4 (previously 107, 104, and 16.0). If you support older browsers, set build.target explicitly.
  • No more format sniffing. Vite no longer inspects package file content to choose between browser and module fields; it follows resolve.mainFields order strictly.
  • require() of externalized modules stays require(). Use the esmExternalRequirePlugin exported from vite to convert them to imports.
  • import.meta.url in UMD/IIFE output is no longer polyfilled and becomes undefined.
  • build.rollupOptions.watch.chokidar is removed; use build.rolldownOptions.watch.watcher.
  • build.commonjsOptions is now a no-op, since Rolldown handles CommonJS natively.
  • import.meta.hot.accept(url) with a URL is no longer supported; pass a module id.
  • output.format 'system' and 'amd' are not supported by Rolldown.
  • ES5 output via plugin-legacy is not supported.

Native decorators

Oxc does not yet lower native (TC39) decorators. If your source uses them and your target does not support them natively, the migration guide shows two workarounds: run Babel via @rolldown/plugin-babel or SWC via @rollup/plugin-swc, filtered to files containing @ so the cost is limited to those files. Separately, Vite 8 adds built-in emitDecoratorMetadata support, which previously required an extra plugin.

Plugin compatibility

Rolldown implements the same plugin API as Rollup and Vite, and the announcement states that "most existing Vite plugins work out of the box with Vite 8." The exceptions are specific:

Plugin pattern Status in Vite 8 Fix
Standard resolveId/load/transform plugins Works None
Plugins calling transformWithEsbuild Works only with esbuild installed Install esbuild as a devDependency, or migrate to transformWithOxc
Plugins that turn non-JS files into JS in load/transform Must declare the type Return moduleType: 'js'
Plugins assigning to bundle[fileName] in generateBundle Not supported Use this.emitFile()
shouldTransformCachedModule, resolveImportMeta, renderDynamicImport, resolveFileUrl hooks Not supported Rework the plugin
Parallel Rollup hooks Run sequentially Usually no change needed
parseAst / parseAstAsync Deprecated Use parseSync / parse

A minimal plugin that loads .txt files as JavaScript, updated for Vite 8, looks like this:

// vite-plugin-txt.js
import { readFileSync } from 'node:fs'

export default function txtLoader() {
  return {
    name: 'txt-loader',
    load(id) {
      if (id.endsWith('.txt')) {
        const content = readFileSync(id, 'utf-8')
        return {
          code: `export default ${JSON.stringify(content)}`,
          moduleType: 'js',
        }
      }
    },
  }
}

Without moduleType: 'js', Rolldown infers the type from the .txt extension and does not parse the returned code as JavaScript.

Anyone using the JavaScript API should also know that build() now throws a BundleError whose .errors array holds individual Rolldown errors, each with a code.

Vite 8 vs the alternatives

If the bundler swap has you re-evaluating the toolchain, the competition has changed too. Rspack offers a webpack-compatible Rust bundler, and meta-frameworks bundle their own pipelines. We compare them in Rspack vs Vite and Vite vs Next.js. For monorepos, the build orchestrator matters as much as the bundler; see Nx vs Turborepo.

Frequently Asked Questions

When was Vite 8 released?

Vite 8.0 was announced on 12 March 2026 on the official Vite blog. Its beta, which first made Rolldown the default bundler, shipped in December 2025.

Do I need to change my vite.config file for Vite 8?

Not immediately. Vite 8 converts esbuild, optimizeDeps.esbuildOptions, and build.rollupOptions to their Oxc and Rolldown equivalents automatically and prints deprecation warnings. You must make changes if you use the object form of manualChunks (removed), esbuild property mangling, esbuild.banner/footer, or depend on the old CommonJS default import behavior.

Is esbuild still used in Vite 8?

Not by default. Rolldown handles dependency pre-bundling and bundling, and Oxc handles transforms and JS minification. esbuild is now an optional dependency, needed only if you set build.minify: 'esbuild', build.cssMinify: 'esbuild', or use plugins that call transformWithEsbuild.

What Node.js version does Vite 8 require?

Node.js 20.19 or later, or 22.12 or later, the same as Vite 7. Those versions support require() of ES modules, which allows Vite to be distributed as ESM only.

Do Rollup plugins work with Vite 8?

Most do. Rolldown supports the Rollup plugin API, and Vite's own plugin API is unchanged. Plugins break when they mutate the bundle object directly, rely on hooks Rolldown does not implement (such as resolveFileUrl), or return non-JS content without setting moduleType: 'js'.

How do I replace manualChunks in Vite 8?

Use Rolldown's codeSplitting option under build.rolldownOptions.output. Each entry in groups takes a test regular expression matched against module paths and a name for the output chunk. The object form of manualChunks is removed, and the function form is deprecated.

Conclusion

Vite 8 is a big change under the hood and a small one in your config file. Confirm Node.js 20.19+/22.12+, install Vite 8 and the current framework plugin, rename rollupOptions to rolldownOptions and esbuild to oxc, replace object-form manualChunks with codeSplitting, and watch for CommonJS interop and minifier differences in your end-to-end tests. Large codebases should take the rolldown-vite detour first so bundler issues are isolated from everything else. Done that way, you get one bundler for dev and production and, per the teams that reported numbers, substantially faster builds. While you tidy up configs, the free developer tools on Butlermind Hub include a JSON formatter and a code diff checker.