David Aurelio cb4fca3590 Use numeric identifiers when building a bundle
Summary:
public

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: D2842418

fb-gh-sync-id: 97addd28e964ac5f2b5081dcd3f36124d2864df8
2016-01-21 10:37:15 -08:00
..
2015-07-24 08:41:58 -08:00
2016-01-06 10:33:29 -08:00
2016-01-08 15:42:32 -08:00
2016-01-12 03:11:31 -08:00
2015-12-23 10:08:38 -08:00
2016-01-20 15:14:31 -08:00
2015-12-18 17:04:29 -08:00
2015-12-03 09:10:29 -08:00
2016-01-15 05:15:31 -08:00
2016-01-14 14:04:34 -08:00
2015-07-24 08:41:58 -08:00