fix(app): add 'inject' param for nuxt3 plugins (#226)

This commit is contained in:
Daniel Roe 2021-06-17 11:02:22 +01:00 committed by GitHub
parent 3e855c280f
commit 62b19c63f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ export function createNuxt (options: CreateOptions) {
export function applyPlugin (nuxt: Nuxt, plugin: Plugin) {
if (typeof plugin !== 'function') { return }
return callWithNuxt(nuxt, () => plugin(nuxt))
return callWithNuxt(nuxt, () => plugin(nuxt, nuxt.provide))
}
export async function applyPlugins (nuxt: Nuxt, plugins: Plugin[]) {