diff --git a/lib/6to5/util.js b/lib/6to5/util.js index 423180c532..bd39a9eb9d 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -262,7 +262,7 @@ var loadTemplates = function () { }; try { - return require("../../templates.json"); + exports.templates = require("../../templates.json"); } catch (err) { if (err.code !== "MODULE_NOT_FOUND") throw err;