diff --git a/lib/app.js b/lib/app.js index 03c92ca..ef85a90 100644 --- a/lib/app.js +++ b/lib/app.js @@ -87,7 +87,14 @@ class Mali extends Emitter { if (typeof path === 'object' && path.root && path.file) { protoFilePath = path.file if (!loadOptions.includeDirs) { - loadOptions.includeDirs = [path.root] + /** + * To support multiple folders to feed the protoLoader. + */ + if (path.root instanceof Array) { + loadOptions.includeDirs = path.root + } else { + loadOptions.includeDirs = [path.root] + } } }