From 447dc7283e3e022f9f161815c0c4d0aeeded1e2e Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Wed, 18 Nov 2015 13:22:50 -0800 Subject: [PATCH] fix(compile-cache): Add .jsx extension to babel compiler module --- src/compile-support/babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile-support/babel.js b/src/compile-support/babel.js index ecbaf43b4..df03b5e11 100644 --- a/src/compile-support/babel.js +++ b/src/compile-support/babel.js @@ -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)