Hotfix jest startup time
Summary: I talked about this a bunch before. node-haste2 will resolve this issue. Right now node-haste1 looks into eevery single node_module recursively even though we only need to look into a finite-set of them. Some node_modules are huge so it takes a long time. haste2 doesn't eagerly look into node_modules so it doesn't have this issue. This diff blacklists the modules from node-haste but since we use the `resolve` npm module as a fallback we'll still be able to require them. public Reviewed By: kassens Differential Revision: D2852384 fb-gh-sync-id: 113f1bd9c66fcd712c2549a7110a3e752b0e4a69
This commit is contained in:
parent
2cbc912756
commit
717207a23f
|
@ -22,6 +22,7 @@
|
||||||
"/node_modules/"
|
"/node_modules/"
|
||||||
],
|
],
|
||||||
"modulePathIgnorePatterns": [
|
"modulePathIgnorePatterns": [
|
||||||
|
"/node_modules/(?!react|fbjs|react-native|parse|react-transform-hmr|core-js|promise)/",
|
||||||
"node_modules/react/lib/React.js",
|
"node_modules/react/lib/React.js",
|
||||||
"node_modules/react/lib/ReactDOM.js",
|
"node_modules/react/lib/ReactDOM.js",
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue