mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
fix(bridge): don't error with defineNuxtMiddleware
(#676)
This commit is contained in:
parent
a07b67ce57
commit
2fc0829dd2
@ -76,7 +76,7 @@ const warnOnce = (id, message) => {
|
|||||||
warnOnce('import', `\`@nuxtjs/composition-api\` is deprecated. ${checkDocsMsg}`)
|
warnOnce('import', `\`@nuxtjs/composition-api\` is deprecated. ${checkDocsMsg}`)
|
||||||
|
|
||||||
// Stub functions that provided type support
|
// 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`.')
|
export const defineNuxtPlugin = unsupported('You are using `defineNuxtPlugin`, which can be replaced with `defineNuxtPlugin` from `@nuxt/bridge`.')
|
||||||
|
|
||||||
// Internal exports
|
// Internal exports
|
||||||
|
Loading…
Reference in New Issue
Block a user