mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(compile-cache): Add .jsx extension to babel compiler module
This commit is contained in:
parent
03523f7db1
commit
e1aa260597
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue