@ifds/hydration-lens-vue
v0.1.0
Published
Vue/Nuxt adapter for hydration-lens: patches console.warn and parses Vue hydration warnings.
Downloads
27
Maintainers
Readme
@ifds/hydration-lens-vue
Vue 3 adapter for hydration-lens. It recognizes Vue hydration warnings, extracts the mismatch details, locates the affected DOM element when possible, and displays the shared overlay.
Install
npm install --save-dev @ifds/hydration-lens-vueUsage
Call init() on the client during app startup:
import { init } from "@ifds/hydration-lens-vue";
if (import.meta.env.DEV) init();init(options?) is safe to call more than once and is a no-op outside the browser. Pass { suppressConsole: true } to suppress recognized Vue warning output.
Supports Vue 3. For Nuxt, use @ifds/hydration-lens-nuxt for zero-config setup.
License
MIT — see the repository LICENSE.
