Allow cli options to be specified in separate definitions

Fix for #963. This allows stuff like `--define a=1 --define b=1` besides only `--define a=1,b=1`
This commit is contained in:
Richard van Velzen 2016-02-08 10:36:28 +01:00
parent 601780acc1
commit 895b288bdf

View File

@ -504,6 +504,8 @@ function getOptions(x, constants) {
if (x == null) return null;
var ret = {};
if (x !== "") {
if (Array.isArray(x)) x = x.map(function (v) { return "(" + v + ")"; }).join(", ");
var ast;
try {
ast = UglifyJS.parse(x, { expression: true });