add --ignore and --extensions flag to 6to5-node to compliment require hook options

This commit is contained in:
Sebastian McKenzie
2014-10-16 10:02:16 +11:00
parent 5b08924c02
commit 45c8c29cdf
4 changed files with 29 additions and 10 deletions

View File

@@ -20,6 +20,10 @@ exports.ensureBlock = function (node) {
node.body = b.blockStatement(block);
};
exports.list = function (val) {
return val ? val.split(",") : [];
};
exports.getUid = function (parent, file) {
var node;