fix(compile-cache): Add .jsx extension to babel compiler module

This commit is contained in:
Juan Tejada 2015-11-18 13:22:50 -08:00
parent f0c435e2ab
commit 447dc7283e

View file

@ -18,7 +18,7 @@ var PREFIX_LENGTH = Math.max.apply(Math, PREFIXES.map(function (prefix) {
}))
exports.shouldCompile = function (sourceCode, filePath) {
if (filePath.endsWith('.es6')) {
if (filePath.endsWith('.es6') || filePath.endsWith('.jsx')) {
return true;
}
var start = sourceCode.substr(0, PREFIX_LENGTH)