fix(bridge): don't error with defineNuxtMiddleware (#676)

This commit is contained in:
Daniel Roe 2021-10-06 17:36:24 +02:00 committed by GitHub
parent a07b67ce57
commit 2fc0829dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ const warnOnce = (id, message) => {
warnOnce('import', `\`@nuxtjs/composition-api\` is deprecated. ${checkDocsMsg}`)
// Stub functions that provided type support
export const defineNuxtMiddleware = unsupported('You are using `defineNuxtMiddleware`, which can be replaced with `defineNuxtMiddleware` from `@nuxt/bridge`.')
export const defineNuxtMiddleware = mw => mw
export const defineNuxtPlugin = unsupported('You are using `defineNuxtPlugin`, which can be replaced with `defineNuxtPlugin` from `@nuxt/bridge`.')
// Internal exports