Skip to content

Commit

Permalink
fix: expose defineAsyncComponent/proxyRefs from legacy runtime (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wattanx authored May 9, 2024
1 parent c1ce444 commit ed6b683
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/bridge/src/runtime/capi.legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export {
watch,
watchEffect,
watchPostEffect,
watchSyncEffect
watchSyncEffect,
defineAsyncComponent,
proxyRefs
} from 'vue'

export { ref }
Expand All @@ -76,9 +78,7 @@ const warnOnce = (id, message) => {

export const createApp = () => unsupported('`createApp` is not provided by Vue 2.7.')
export const createRef = () => unsupported('`createRef` is not provided by Vue 2.7.')
export const defineAsyncComponent = () => unsupported('`defineAsyncComponent` is not provided by Vue 2.7.')
export const isRaw = () => unsupported('`isRaw` is not provided by Vue 2.7.')
export const proxyRefs = () => unsupported('`proxyRefs` is not provided by Vue 2.7.')
export const warn = () => unsupported('`warn` is not provided by Vue 2.7.')

// Warn in case of having any imports from `@nuxtjs/composition-api`
Expand Down

0 comments on commit ed6b683

Please sign in to comment.