inline requires + preprocessor updates

Reviewed By: @DmitrySoshnikov

Differential Revision: D2455903
This commit is contained in:
Christoph Pojer
2015-09-19 15:20:25 -07:00
committed by facebook-github-bot-3
parent f802998599
commit 3fca7f4d7b
4 changed files with 329 additions and 15 deletions

View File

@@ -8,10 +8,18 @@
*/
'use strict';
var transformer = require('../packager/transformer.js');
const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
const path = require('path');
const transformer = require('../packager/transformer.js');
module.exports = {
process(src, file) {
return transformer.transform(src, file).code;
}
},
getCacheKey: createCacheKeyFunction([
__filename,
path.join(__dirname, '../packager/transformer.js'),
path.join(__dirname, '../node_modules/babel-core/package.json'),
]),
};