fix helper whitelist in build script
This commit is contained in:
@@ -5,7 +5,7 @@ var t = require("./types");
|
||||
|
||||
module.exports = function (body, namespace, whitelist = []) {
|
||||
each(File.helpers, function (name) {
|
||||
if (whitelist.length && whitelist.indexOf(key) >= 0) return;
|
||||
if (whitelist.length && whitelist.indexOf(name) == -1) return;
|
||||
|
||||
var key = t.identifier(t.toIdentifier(name));
|
||||
body.push(t.expressionStatement(
|
||||
|
||||
Reference in New Issue
Block a user