react-native/Libraries
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
..
ART Fixed ART background color 2016-01-08 15:42:32 -08:00
ActionSheetIOS ActionSheetIOS support for presentation from modal view controller 2016-01-12 03:14:35 -08:00
AdSupport Text highlighting on iOS 2015-07-24 08:41:58 -08:00
Animated remove a typo 2016-01-06 10:33:29 -08:00
AppRegistry Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
AppStateIOS Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
BatchedBridge Implement Android's dispatchViewManagerCommand interface on iOS 2016-01-06 05:58:37 -08:00
CameraRoll Make CameraRoll work with Promises 2016-01-21 08:07:41 -08:00
Components Change the js signature to be Promise based and dynamically detect it used as a callback 2016-01-21 09:49:34 -08:00
CustomComponents Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
DebugComponentHierarchy Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Device Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Devtools Use pre-bundled elements inspector 2015-10-29 11:21:32 -07:00
Fetch Add fetch's clone function to Request and Response prototypes 2015-10-30 10:57:33 -07:00
Geolocation See issue #4886 2016-01-12 03:11:31 -08:00
Image adjust getSize so that its doc can be shown on the page 2016-01-21 08:23:36 -08:00
Inspector Inspecting stateless components. 2015-12-08 10:13:25 -08:00
Interaction Updates for haste2 inside of jest 2016-01-08 06:52:29 -08:00
JavaScriptAppEngine Remove now unnecessary tweaking of global 2016-01-21 10:26:33 -08:00
LayoutAnimation Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
LinkingIOS Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
Modal Improve Modal docs describing iOS only support 2015-12-05 18:48:28 -08:00
NativeApp Decouple Module System from Native Calls 2015-12-08 16:03:37 -08:00
Network bind this in onreadystatechange call 2016-01-18 08:55:35 -08:00
Picker Added support for styling the PickerIOS 2015-12-08 07:48:26 -08:00
Portal Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
PullToRefresh Added ColorPropType 2015-12-23 10:08:38 -08:00
PushNotificationIOS Made Map & Set polyfills available globally 2016-01-20 08:27:38 -08:00
QuickPerformanceLogger added QPL for main interactions 2015-09-29 22:25:23 -07:00
RCTTest Standardize Error objects for Promises 2016-01-19 12:20:37 -08:00
RKBackendNode Wrapped UIManager native module for better abstraction 2015-11-27 07:00:32 -08:00
ReactIOS RN: Teach YellowBox to Count 2016-01-20 15:14:31 -08:00
ReactNative Deploy v0.20.1 2015-12-18 17:04:29 -08:00
Sample Remove invariant of Sample.ios.js that is not used 2015-05-26 18:25:00 -07:00
Settings Replaced RegExp method parser with recursive descent 2015-12-10 10:12:29 -08:00
Storage Batch AsyncStorage.multiGet calls 2015-12-03 09:10:29 -08:00
StyleSheet PixelRatio.pixel() 2016-01-15 05:15:31 -08:00
Text Improved shadow performance 2016-01-14 14:04:34 -08:00
Utilities Use numeric identifiers when building a bundle 2016-01-21 10:37:15 -08:00
Vibration Text highlighting on iOS 2015-07-24 08:41:58 -08:00
WebSocket Added an optional options parameter for WebSockets 2016-01-20 11:01:39 -08:00
react-native Open sourced spinner aka picker aka drop down for android 2016-01-15 06:25:16 -08:00
vendor Make the packager work with babel strict mode transform 2016-01-21 07:23:34 -08:00
Promise.js Add support for promise rejection tracking 2016-01-07 12:02:56 -08:00