diff --git a/packages/core/src/pattern.js b/packages/core/src/pattern.js index 6ad0df971e2..7a353395e35 100644 --- a/packages/core/src/pattern.js +++ b/packages/core/src/pattern.js @@ -584,9 +584,9 @@ Pattern.prototype.resolveDependencies = function (graph = this.config.dependenci let dependency = this.config.inject[i] if (typeof this.config.dependencies[i] === 'undefined') this.config.dependencies[i] = dependency else if (this.config.dependencies[i] !== dependency) { - if (typeof this.config.dependencies[i] === 'string') + if (typeof this.config.dependencies[i] === 'string') { this.config.dependencies[i] = [this.config.dependencies[i], dependency] - else if (Array.isArray(this.config.dependencies[i])) { + } else if (Array.isArray(this.config.dependencies[i])) { if (this.config.dependencies[i].indexOf(dependency) === -1) this.config.dependencies[i].push(dependency) } else {