fix(bridge): detect existence of @nuxt/bridge-edge (#1575)

This commit is contained in:
Anthony Fu 2021-10-29 18:13:59 +08:00 committed by GitHub
parent 8d1fcf3d69
commit f60f461410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')
}
}