allow optional transformer to be set via the whitelist
This commit is contained in:
@@ -29,7 +29,7 @@ TransformerPass.prototype.canRun = function () {
|
||||
|
||||
// whitelist
|
||||
var whitelist = opts.whitelist;
|
||||
if (whitelist.length && !contains(whitelist, key)) return false;
|
||||
if (whitelist.length) return contains(whitelist, key);
|
||||
|
||||
// optional
|
||||
if (transformer.optional && !contains(opts.optional, key)) return false;
|
||||
|
||||
Reference in New Issue
Block a user