mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 14:11:07 +00:00
fix: regression with module.addVendor with array. fixes #2574.
This commit is contained in:
parent
1dbeb132d2
commit
642cf4038a
@ -24,7 +24,7 @@ module.exports = class ModuleContainer {
|
|||||||
|
|
||||||
addVendor(vendor) {
|
addVendor(vendor) {
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (!vendor || typeof vendor !== 'string') {
|
if (typeof vendor !== 'string' && !Array.isArray(vendor)) {
|
||||||
throw new Error('Invalid vendor: ' + vendor)
|
throw new Error('Invalid vendor: ' + vendor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user