When we compile React for npm, a script copies all the modules into a single flat directory called lib and prepends all require() paths with ./The React Source Code: a Beginners Walkthrough I1K7Eric ChurchillShankar ShastriFollowAug 26, 2017 · 1 min readhttps://github.com/facebook/react/blob/master/scripts/rollup/packaging.js