Skip to content

Commit

Permalink
fix(bridge): detect existence of @nuxt/bridge-edge (nuxt#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Oct 29, 2021
1 parent 8d1fcf3 commit f60f461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bridge/module.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports.defineNuxtConfig = (config = {}) => {
if (!config.buildModules) {
config.buildModules = []
}
if (!config.buildModules.find(m => m === '@nuxt/bridge')) {
if (!config.buildModules.find(m => m === '@nuxt/bridge' || m === '@nuxt/bridge-edge')) {
config.buildModules.push('@nuxt/bridge')
}
}
Expand Down

0 comments on commit f60f461

Please sign in to comment.