Skip to content

Vue

Register the plugin on the app:

import { createApp } from 'vue'
import VueWhyRender from 'vue-why-render'
import App from './App.vue'
const app = createApp(App)
app.use(VueWhyRender, {
exclude: [/^RouterLink/, /^Transition/],
})
app.mount('#app')

This is a dev-only tool: wrap app.use(...) in if (import.meta.env.DEV), as described on the Cost page.

Using Nuxt? See Nuxt. Want to start and stop it yourself, with no plugin? See Manually, without the plugin.