mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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 = []
|
||||
}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user