Skip to content

Commit 40a176d

Browse files
authored
Remove mentions of module map in Jest config (#11611)
1 parent 7e692fb commit 40a176d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/jest/preprocessor.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,15 @@ var pathToBabel = path.join(
1818
'..',
1919
'package.json'
2020
);
21-
var pathToModuleMap = require.resolve('fbjs/module-map');
2221
var pathToBabelPluginDevWithCode = require.resolve(
2322
'../error-codes/replace-invariant-error-codes'
2423
);
25-
var pathToBabelPluginModules = require.resolve(
26-
'fbjs-scripts/babel-6/rewrite-modules'
27-
);
2824
var pathToBabelPluginAsyncToGenerator = require.resolve(
2925
'babel-plugin-transform-async-to-generator'
3026
);
3127
var pathToBabelrc = path.join(__dirname, '..', '..', '.babelrc');
3228
var pathToErrorCodes = require.resolve('../error-codes/codes.json');
3329

34-
// TODO: make sure this stays in sync with gulpfile
3530
var babelOptions = {
3631
plugins: [
3732
// For Node environment only. For builds, Rollup takes care of ESM.
@@ -81,9 +76,7 @@ module.exports = {
8176
__filename,
8277
pathToBabel,
8378
pathToBabelrc,
84-
pathToModuleMap,
8579
pathToBabelPluginDevWithCode,
86-
pathToBabelPluginModules,
8780
pathToErrorCodes,
8881
]),
8982
};

0 commit comments

Comments
 (0)