fix(nuxt3): reassign plugins on iterations (#3619)

This commit is contained in:
Dizzy 2022-03-11 15:18:53 -04:00 committed by GitHub
parent 1d8e431f24
commit 3e68433365
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ export async function resolveApp (nuxt: Nuxt, app: NuxtApp) {
} }
// Resolve plugins // Resolve plugins
app.plugins = []
for (const config of [...nuxt.options._extends.map(layer => layer.config), nuxt.options]) { for (const config of [...nuxt.options._extends.map(layer => layer.config), nuxt.options]) {
app.plugins.push(...[ app.plugins.push(...[
...config.plugins ?? [], ...config.plugins ?? [],