react-native/local-cli/server
David Aurelio 06b5bda349 Bring back "Use numeric identifiers when building a bundle"
Summary:This brings back "Use numeric identifiers when building a bundle", previously backed out.
This version passes on the correct entry module name to code that decides transform options.

Original Description:
Since the combination of node and haste modules (and modules that can be required as both node and haste module) can lead to situations where it’s impossible to decide an unambiguous module identifier, this diff switches all module ids to integers. Each integer maps to an absolute path to a JS file on disk.

We also had a problem, where haste modules outside and inside node_modules could end up with the same module identifier.

This problem has not manifested yet, because the last definition of a module wins. It becomes a problem when writing file-based unbundle modules to disk: the same file might be written to concurrently, leading to invalid code.

Using indexed modules will also help indexed file unbundles, as we can encode module IDs as integers rather than scanning string IDs.

Reviewed By: martinbigio

Differential Revision: D2855202

fb-gh-sync-id: 9a011bc403690e1522b723e5742bef148a9efb52
shipit-source-id: 9a011bc403690e1522b723e5742bef148a9efb52
2016-03-14 16:17:20 -07:00
..
middleware Disable Flow on Packager 2016-01-27 15:33:31 -08:00
util Bring back "Use numeric identifiers when building a bundle" 2016-03-14 16:17:20 -07:00
checkNodeVersion.js Quit early if node < 4 2016-02-04 15:23:57 -08:00
formatBanner.js Replace underscore by lodash 2016-03-09 03:09:44 -08:00
runServer.js Add message channel to packager for sending commands to bridge (2/N) 2016-02-25 18:15:53 -08:00
server.js add host argument for packager. 2016-01-19 16:47:33 -08:00