From 9a8dfd105effbc2063027e5fcc29010285520041 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 11 Oct 2014 22:00:22 +1100 Subject: [PATCH] add jsx to canCompile --- lib/6to5/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/util.js b/lib/6to5/util.js index 0efa010187..f303c0ccc8 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -66,7 +66,7 @@ exports.camelCase = function (value) { exports.canCompile = function (filename) { var ext = path.extname(filename); - return ext === ".js" || ext === ".es6"; + return _.contains([".js", ".es6", ".jsx"], ext); }; exports.buildUidGenerator = function () {