vue-lynx/vapor
The pure Vapor application entry. With pluginVueLynx({ vapor: true }),
'vue' is aliased to this module — it provides everything a Vapor app
imports from 'vue' (reactivity, lifecycle, watchers, DI, SFC macros, the
Vapor helper surface) without the vdom renderer. See the
Vapor Mode guide for how the mode works and its
current limitations.
vdom-only APIs (h(), render(), <Transition>, <Teleport>,
<KeepAlive>, <Suspense>, vShow, vModelText,
vaporInteropPlugin) are intentionally absent — importing them in a
Vapor app fails at build time instead of misbehaving at runtime.
Vue Lynx APIs
APIs specific to Lynx's dual-thread architecture. They behave identically
to their vue-lynx (vdom entry) counterparts:
Vue Re-exports
The standard Vue 3 surface — ref, reactive, computed, watch,
lifecycle hooks, provide/inject, SFC macros, useCssModule, and the
rest of @vue/runtime-core — is re-exported unchanged and behaves exactly
as documented in the Vue.js API Reference. The
@vue/runtime-vapor helper surface that compiled
<script setup vapor> code imports (template, createComponent,
createFor, renderEffect, …) is also re-exported — you rarely touch it
directly.
Lynx Vapor Adapters
Lynx-specific pieces of the Vapor surface (mostly compiler-facing —
compiled <script setup vapor> output imports these):