mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 10:54:49 +00:00
12 lines
307 B
TypeScript
12 lines
307 B
TypeScript
import type { Plugin } from 'nuxt/app'
|
|
|
|
export default <Plugin> function preload ({ app }) {
|
|
app.mixin({
|
|
beforeCreate () {
|
|
const { _registeredComponents } = this.$nuxt.ssrContext
|
|
const { __moduleIdentifier } = this.$options
|
|
_registeredComponents.add(__moduleIdentifier)
|
|
}
|
|
})
|
|
}
|