diff --git a/packages/bridge/src/runtime/app.ts b/packages/bridge/src/runtime/app.ts index 4d98e77777f..d3352c4146e 100644 --- a/packages/bridge/src/runtime/app.ts +++ b/packages/bridge/src/runtime/app.ts @@ -4,6 +4,9 @@ import type { Vue } from 'vue/types/vue' import type { ComponentOptions } from 'vue' import { defineComponent, getCurrentInstance } from './composables' +export const isVue2 = true +export const isVue3 = false + export const defineNuxtComponent = defineComponent export interface RuntimeNuxtHooks { } diff --git a/packages/nuxt3/src/app/index.ts b/packages/nuxt3/src/app/index.ts index c4b91a3b545..1a9d8ae0d16 100644 --- a/packages/nuxt3/src/app/index.ts +++ b/packages/nuxt3/src/app/index.ts @@ -1,2 +1,5 @@ export * from './nuxt' export * from './composables' + +export const isVue2 = false +export const isVue3 = true