Nuxt/packages/nuxt/src/app/plugins/debug.ts

11 lines
243 B
TypeScript
Raw Normal View History

import { createDebugger } from 'hookable'
import { defineNuxtPlugin } from '../nuxt'
export default defineNuxtPlugin({
name: 'nuxt:debug',
enforce: 'pre',
setup (nuxtApp) {
createDebugger(nuxtApp.hooks, { tag: 'nuxt-app' })
},
})