mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 02:44:51 +00:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { defineNuxtPlugin } from '#app/nuxt'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.vueApp.mixin({
|
|
beforeCreate () {
|
|
const { _registeredComponents } = this.$nuxt.ssrContext
|
|
const { __moduleIdentifier } = this.$options
|
|
_registeredComponents.add(__moduleIdentifier)
|
|
}
|
|
})
|
|
})
|