mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-01 21:07:59 +08:00
fix(compile-cache): Add .jsx extension to babel compiler module
This commit is contained in:
parent
f0c435e2ab
commit
447dc7283e
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