From 717207a23f951ecc9080e6db0ad532daefc28f6c Mon Sep 17 00:00:00 2001 From: Christoph Pojer Date: Fri, 22 Jan 2016 11:34:19 -0800 Subject: [PATCH] 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 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 88fdbc580..bdd4d7d03 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "/node_modules/" ], "modulePathIgnorePatterns": [ + "/node_modules/(?!react|fbjs|react-native|parse|react-transform-hmr|core-js|promise)/", "node_modules/react/lib/React.js", "node_modules/react/lib/ReactDOM.js",