(filename, options)
| 48 | } |
| 49 | |
| 50 | function isJSXFile(filename, options) { |
| 51 | if (options.everything) { |
| 52 | return true; |
| 53 | } else { |
| 54 | var extensions = ['js', 'jsx'] |
| 55 | .concat(options.extension) |
| 56 | .concat(options.x) |
| 57 | .filter(Boolean) |
| 58 | .map(function(ext) { return ext[0] === '.' ? ext.slice(1) : ext }); |
| 59 | return new RegExp('\\.(' + extensions.join('|') + ')$').exec(filename); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | module.exports = reactify; |
no outgoing calls
no test coverage detected
searching dependent graphs…