mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
fix(bridge): install bridge module at the end (#2611)
This commit is contained in:
parent
6d88a7314d
commit
8fff48b8df
@ -13,7 +13,8 @@ module.exports.defineNuxtConfig = (config = {}) => {
|
|||||||
config.buildModules = []
|
config.buildModules = []
|
||||||
}
|
}
|
||||||
if (!config.buildModules.find(m => m === '@nuxt/bridge' || m === '@nuxt/bridge-edge')) {
|
if (!config.buildModules.find(m => m === '@nuxt/bridge' || m === '@nuxt/bridge-edge')) {
|
||||||
config.buildModules.unshift('@nuxt/bridge')
|
// Ensure other modules register their hooks before
|
||||||
|
config.buildModules.push('@nuxt/bridge')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user