6to5
Advanced tools
Comparing version 3.3.10 to 3.3.11
@@ -78,4 +78,2 @@ "use strict"; | ||
exports.JSXEmptyExpression = function () { | ||
}; | ||
exports.JSXEmptyExpression = function () {}; |
@@ -15,10 +15,2 @@ "use strict"; | ||
exports.load = function () { | ||
if (!fs.existsSync(FILENAME)) return; | ||
try { | ||
data = JSON.parse(fs.readFileSync(FILENAME)); | ||
} catch (err) { | ||
return; | ||
} | ||
process.on("exit", exports.save); | ||
@@ -33,2 +25,10 @@ | ||
process.on("SIGINT", sigint); | ||
if (!fs.existsSync(FILENAME)) return; | ||
try { | ||
data = JSON.parse(fs.readFileSync(FILENAME)); | ||
} catch (err) { | ||
return; | ||
} | ||
}; | ||
@@ -35,0 +35,0 @@ |
@@ -63,2 +63,6 @@ "use strict"; | ||
exports.manipulateOptions = function (opts) { | ||
if (opts.whitelist.length) opts.whitelist.push("es6.modules"); | ||
}; | ||
exports.ast = { | ||
@@ -65,0 +69,0 @@ enter: function (ast, file) { |
{ | ||
"name": "6to5", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "3.3.10", | ||
"version": "3.3.11", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://6to5.org/", |
Sorry, the diff of this file is too big to display
1420100
12173