mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(nuxt): ensure plugins retain original order (#23174)
This commit is contained in:
parent
6afbdc349e
commit
8c1eaa0078
@ -143,7 +143,7 @@ async function resolveApp (nuxt: Nuxt, app: NuxtApp) {
|
||||
}
|
||||
|
||||
// Add back plugins not specified in layers or user config
|
||||
for (const p of nuxt.options.plugins) {
|
||||
for (const p of [...nuxt.options.plugins].reverse()) {
|
||||
const plugin = normalizePlugin(p)
|
||||
if (!app.plugins.some(p => p.src === plugin.src)) {
|
||||
app.plugins.unshift(plugin)
|
||||
|
Loading…
Reference in New Issue
Block a user