Skip to content

Commit

Permalink
Remove mentions of module map in Jest config (#11611)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Nov 21, 2017
1 parent 7e692fb commit 40a176d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,15 @@ var pathToBabel = path.join(
'..',
'package.json'
);
var pathToModuleMap = require.resolve('fbjs/module-map');
var pathToBabelPluginDevWithCode = require.resolve(
'../error-codes/replace-invariant-error-codes'
);
var pathToBabelPluginModules = require.resolve(
'fbjs-scripts/babel-6/rewrite-modules'
);
var pathToBabelPluginAsyncToGenerator = require.resolve(
'babel-plugin-transform-async-to-generator'
);
var pathToBabelrc = path.join(__dirname, '..', '..', '.babelrc');
var pathToErrorCodes = require.resolve('../error-codes/codes.json');

// TODO: make sure this stays in sync with gulpfile
var babelOptions = {
plugins: [
// For Node environment only. For builds, Rollup takes care of ESM.
Expand Down Expand Up @@ -81,9 +76,7 @@ module.exports = {
__filename,
pathToBabel,
pathToBabelrc,
pathToModuleMap,
pathToBabelPluginDevWithCode,
pathToBabelPluginModules,
pathToErrorCodes,
]),
};

0 comments on commit 40a176d

Please sign in to comment.