Nuxt/test/fixtures/basic/plugins/context-error.ts

10 lines
199 B
TypeScript

export default defineNuxtPlugin(() => {
// this should be undefined
const vueApp = getCurrentInstance()
return {
provide: {
wasVueAppInstanceWronglyPreserved: !!vueApp,
},
}
})