Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expose defineAsyncComponent and proxyRefs at legacy runtime. #1205

Merged
merged 2 commits into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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