Packages

vite

8.3.8 · 11 Nov 2026MIT286.5M / weekRepositoryHomepagenpmAtom feed

Your version

8.0.0

major12 Mar 2026Where it was published

8.3.8 is the newest release of 8.x.

Summary· from the note as AI read it

Migration neededRead before upgrading: 7 changes to make.

Before you upgrade

  • import.meta.hot.accept no longer falls back on resolution; use exact paths
  • Default browser target changed; check build.target if older browsers matter
  • Vite now uses Rolldown; follow the migration guide for config and plugins
  • Native plugins v2 now enabled by default; check builds and plugin behaviourTo check
  • ModuleRunnerImportMeta no longer extends ImportMeta; check type usages
  • esbuild peer dependency range changed; check your installed esbuild version
  • Stop using experimental.enableNativePlugin: 'resolver'

Deprecated

  • Move off resolve.alias customResolver; use a plugin with enforce: 'pre'

New

  • update rolldown to 1.0.0-rc.9
  • warn when vite-tsconfig-paths plugin is detected
  • css: support es2025 build target for lightningcss
  • forward browser console logs and errors to dev server terminal
  • update rolldown to 1.0.0-rc.8

Migration Guide ↗

In short

5 breaking2 removed1 deprecated34 new2 faster39 fixed36 internal

  • Breaking

    update default browser target

  • Breaking

    the epic rolldown-vite merge

  • Breaking

    introduce v2 native plugins and enable it by default

    To check
  • Breaking

    types: remove extends ImportMeta from ModuleRunnerImportMeta

  • Breaking

    deps: update esbuild peerDependency version

  • Removed

    remove import.meta.hot.accept resolution fallback

  • Removed

    remove experimental.enableNativePlugin: 'resolver'

  • Deprecated

    deprecate customResolver in resolve.alias

Security

10 advisories affect 8.0.0; 8.3.3 fixes them

5 more

Release note

The section about vite of a note shared by several packages.

Vite 8 is here!

Today, we're thrilled to announce the release of the next Vite major:

Breaking changes

  • Breaking

    Remove import.meta.hot.accept resolution fallback

  • Breaking

    Update default browser target

  • Breaking

    The epic rolldown-vite merge

Features

  • Warn when vite-tsconfig-paths plugin is detected

  • css: support es2025 build target for lightningcss

  • Forward browser console logs and errors to dev server terminal

  • Export Visitor and ESTree from rolldown/utils

  • Use util.inspect for CLI error display

  • wasm: add SSR support for .wasm?init

  • Integrate devtools

  • manifest: add assets field for standalone CSS entry points

  • bundled-dev: support worker in initial bundle

  • dev: detect port conflicts on wildcard hosts

  • Shortcuts case insensitive

  • Warn if envPrefix contains spaces

  • Add ignoreOutdatedRequests option to optimizeDeps

  • Add ios to default esbuild targets

  • css: support es2024 build target for lightningcss

  • Introduce v2 native plugins and enable it by default

  • ssr: avoid errors when rewriting already rewritten stacktrace

  • Add a warning that is output when a plugin sets esbuild related options

  • Highly experimental full bundle mode

  • Print esbuild options when both esbuild and oxc options are set

  • Update default browser target

  • The epic rolldown-vite merge

Bug Fixes

  • deps: update all non-major dependencies

  • Use watch.watcher instead of watch.notify

  • css: apply server.origin to public file URLs in CSS (fix #18457)

  • deps: update all non-major dependencies

  • dev: disable extglobs for consistency

  • lib: keep annotation comments for es output

  • optimizer: avoid error happening with a package with asset entrypoint

  • ssr: throw friendly error when calling ssrLoadModule with non-runnable ssr env

  • types: remove extends ImportMeta from ModuleRunnerImportMeta

  • wasm: reset assetUrlRE.lastIndex before .test() in SSR builds

  • deps: update all non-major dependencies

  • optimizer: avoid duplicate modules when preserveSymlinks is enabled

  • dev: only treat EADDRINUSE as port conflict in wildcard pre-check

  • dev: prevent concurrent server restarts

  • dev: return "502 Bad Gateway" on proxy failures instead of 500

  • Clear tsconfig cache only when tsconfig.json is cached

  • deps: update all non-major dependencies

  • lib: CSS injection point error with nested name IIFE output

  • module-runner: incorrect column with sourcemapInterceptor: "prepareStackTrace"

  • module-runner: prevent crash on negative column in stacktrace

  • rolldownOptions/rollupOptions merging at environment level

  • scanner: respect tsconfig.json

  • Avoid registering customization hook for import meta resolver multiple times

  • config: avoid watching rolldown runtime virtual module

  • deps: update all non-major dependencies

  • Populate originalFileNames when resolving CSS asset paths

  • deps: update all non-major dependencies

  • Disable tsconfig option when loading config

  • optimizer: map relative new URL paths to correct relative file location

  • Avoid using deprecated output.inlineDynamicImport option

  • Use separate hook object for each environment

  • deps: update all non-major dependencies

  • dev: avoid event emitter leak caused by server.listen callback

  • Lazy hook filter should work

  • optimizer: skip rolldownCjsExternalPlugin for platform: neutral

  • deps: update all non-major dependencies

  • deps: update esbuild peerDependency version

  • hmr: trigger prune event when last import is removed

  • module-runner: use process.getBuiltinModule instead of import('node:module')

  • Support .env file mounts (FIFOs)

  • css: stylus Evaluator support

  • deps: update all non-major dependencies

  • import-analysis: avoid cjs interop for built browser external module

  • worker: handle new Worker(..., new URL(import.meta.url)) with trailing comma

  • Detect import.meta.resolve when formatted across multiple lines

  • Allow no-cors requests for non-script tag requests

  • deps: update all non-major dependencies

  • Unreachable error when building with experimental.bundledDev is enabled

  • deps: update all non-major dependencies

  • Don't strip base from imports

  • Allow exiting process before optimizer cleanup is done

  • Plugin shortcut support

Performance Improvements

  • ssr: skip circular import check for already-evaluated modules

  • Use tsconfig cache for oxc transform in dev

Code Refactoring

  • Deprecated

    Deprecate customResolver in resolve.alias

  • Removed

    Remove experimental.enableNativePlugin: 'resolver'

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.