diff --git a/docs/next/performance.html b/docs/next/performance.html index 45ba5302fac..d8a6adfae24 100644 --- a/docs/next/performance.html +++ b/docs/next/performance.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

You can run via node packager/modulePaths.js.

+

You can run via node packager/generateModulePaths.js.

This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

Updating the config.js

Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.

diff --git a/docs/next/performance/index.html b/docs/next/performance/index.html index 45ba5302fac..d8a6adfae24 100644 --- a/docs/next/performance/index.html +++ b/docs/next/performance/index.html @@ -360,7 +360,7 @@ fs.writeFile('./packager/modulePaths.js', fileD console.log('Done'); }); -

You can run via node packager/modulePaths.js.

+

You can run via node packager/generateModulePaths.js.

This script attempts to map from the module names to module paths. Its not foolproof though, for instance, it ignores platform specific files (*ios.js, and *.android.js). However based on initial testing, it handles 95% of cases. When it runs, after some time it should complete and output a file named packager/modulePaths.js. It should contain paths to module files that are relative to your projects root. You can commit modulePaths.js to your repo so it is transportable.

Updating the config.js

Returning to packager/config.js we should update it to use our newly generated modulePaths.js file.