mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(app): add 'inject' param for nuxt3 plugins (#226)
This commit is contained in:
parent
3e855c280f
commit
62b19c63f3
@ -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[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user