fix helper whitelist in build script
This commit is contained in:
parent
5b84b9c867
commit
dc6129eb6a
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user