mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: regression with module.addVendor with array. fixes #2574.
This commit is contained in:
parent
1dbeb132d2
commit
642cf4038a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user