mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-06 08:08:10 +08:00
13 lines
286 B
JavaScript
13 lines
286 B
JavaScript
|
var ReactTools = require('react-tools');
|
||
|
var cjsx = require('coffee-react');
|
||
|
|
||
|
module.exports = {
|
||
|
process: function(src, path) {
|
||
|
if (path.match(/\.(coffee|cjsx)$/)) {
|
||
|
return cjsx.compile(src, {'bare': true});
|
||
|
} else {
|
||
|
return ReactTools.transform(src);
|
||
|
}
|
||
|
}
|
||
|
};
|