From 8fff48b8dfc347915cea1107247a2d6a5ec41144 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 6 Jan 2022 02:22:13 +0800 Subject: [PATCH] fix(bridge): install bridge module at the end (#2611) --- packages/bridge/module.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bridge/module.cjs b/packages/bridge/module.cjs index f019b1253b..68dbe49aba 100644 --- a/packages/bridge/module.cjs +++ b/packages/bridge/module.cjs @@ -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