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 () {