diff --git a/lib/core/module.js b/lib/core/module.js index 0a87757d37..704afc2853 100755 --- a/lib/core/module.js +++ b/lib/core/module.js @@ -24,8 +24,8 @@ module.exports = class ModuleContainer { addVendor(vendor) { /* istanbul ignore if */ - if (!vendor || typeof vendor !== 'string') { - throw new Error('Invalid vendor:' + vendor) + if (typeof vendor !== 'string' && !Array.isArray(vendor)) { + throw new Error('Invalid vendor: ' + vendor) } this.options.build.vendor = uniq(this.options.build.vendor.concat(vendor))