react-native/Libraries/Utilities
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
..
__mocks__ Add guard to ErrorUtils mock 2016-01-28 12:08:50 -08:00
__tests__ Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
differ [ReactNative] Fix warnings w/h => width/height 2015-05-02 10:22:59 -08:00
Alert.js Simplified AlertIOS 2016-01-21 10:57:26 -08:00
AlertIOS.js CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
BackAndroid.android.js Snapshot the Set of listeners when dispatching a BackAndroid event 2016-02-08 03:23:35 -08:00
BackAndroid.ios.js RN: Remove BackAndroid Warning 2015-11-12 13:24:27 -08:00
CPUProfiler.js Add NativeProfiling module that uses RN nativeProfiler or console.profile 2015-11-27 04:44:25 -08:00
Dimensions.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
ErrorUtils.js [Cosmetic] Fixing comment typo 2015-06-02 20:23:34 -08:00
HMRClient.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
HMRLoadingView.android.js Show a Toast for HMR 2016-02-27 15:58:35 -08:00
HMRLoadingView.ios.js Show a Toast for HMR 2016-02-27 15:58:35 -08:00
MatrixMath.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
MessageQueue.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
PerformanceLogger.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
PixelRatio.js PixelRatio.pixel() 2016-01-15 05:15:31 -08:00
Platform.android.js Make CameraRoll work with Promises 2016-01-21 08:07:41 -08:00
Platform.ios.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
RCTLog.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
RCTRenderingPerf.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
Systrace.js Bring back "Use numeric identifiers when building a bundle" 2016-03-14 16:17:20 -07:00
UIManager.js Removed 'screen' option from snapshot API 2016-02-24 09:06:31 -08:00
buildStyleInterpolator.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
createStrictShapeTypeChecker.js Remove knowledge of fbjs from the packager 2016-03-02 04:28:38 -08:00
deepFreezeAndThrowOnMutationInDev.js Ensure recursion is terminated on objects with cyclical references 2016-02-12 14:56:00 -08:00
deprecatedCallback.js Use promises in 'NetInfo' 2016-02-15 13:34:33 -08:00
deprecatedPropType.js Add a deprecatedPropType module to show deprecation warnings 2016-01-29 02:05:38 -08:00
dismissKeyboard.js [ReactNative] Sync [react_native] Fix keyboard behavior for android 2015-08-14 02:58:37 -08:00
groupByEveryN.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
logError.js Flowify Library/Utilities/ 2015-03-23 16:47:26 -08:00
mapWithSeparator.js select up and down the inspector hierarchy 2015-06-04 10:18:56 -08:00
mergeFast.js Fix typo 2015-08-06 20:22:24 -08:00
mergeIntoFast.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
stringifySafe.js [ReactNative] improve console logging a little bit 2015-05-04 18:57:03 -08:00
truncate.js Bugfix - Typos 2015-12-15 09:09:32 -08:00