diff --git a/lib/builder.js b/lib/builder.js index 1b6676d..2495b22 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -575,6 +575,8 @@ Builder.prototype.buildStatic = function(expressionOrTree, outFile, opts) { var entryPoints; if (typeof expressionOrTree == 'string') entryPoints = [expressionOrTree.split(/ [\+\&\-] /)[0]]; + else if (expressionOrTree instanceof Array) + entryPoints = expressionOrTree[0]; var outputOpts = processOutputOpts(opts, { outFile: outFile }); var traceOpts = processTraceOpts(opts, { tracePackageConfig: false });