A demo showcasing Vue's new Vapor Mode compilation with benchmark tests inspired by js-framework-benchmark.
Performance comparison between Vue 3.6 Vapor Mode and traditional VDOM rendering
A demo showcasing Vue’s new Vapor Mode compilation with benchmark tests inspired by js-framework-benchmark.
vue: { vapor: true } in nuxt.config.ts; track nuxt/nuxt#35759 for the upstream implementation<script setup vapor> (Vue 3.6 rc)# install dependencies
pnpm install
# serve in dev mode at localhost:3000
pnpm dev
# build for production
pnpm build
# preview in production mode
pnpm preview
Vapor Mode enables direct DOM manipulation without Virtual DOM overhead, potentially improving:
[!NOTE]
This demo mixes Vapor and VDOM components, so Nuxt automatically installs Vue’s interop plugin and the VDOM runtime is still present.
[!IMPORTANT]
Vapor Mode is feature-complete in the Vue 3.6 RC, including SSR hydration, but some limitations remain: no Options API support, and features that depend on VNodes or the component public instance proxy are unavailable in Vapor components.
Made with ❤️
Published under MIT License.