react-native/Libraries/JavaScriptAppEngine/Initialization
Janic Duplessis d33b554f5d Make the packager work with babel strict mode transform
Summary:
At the moment we have to disable strict mode for the transform-es2015-modules-commonjs because strict mode leaks to the global scope and breaks the bridge. It was due to the way the polyfills were bundled in the package. To fix it, I wrapped the polyfill modules in an IIFE. Then when strict mode was enabled some polyfills were broken due to strict mode errors so that was fixed too. Also removed the IIFE from the polyfills that included one.

This diff doesn't enable the strict mode transform since some internal facebook modules depend on it not being enabled. When #5214 lands we could make the default babel config shipped with OSS react-native use strict mode modules and facebook could just modify the babel config to disable it if needed.

This will allow removing `"strict": false` from https://github.com/facebook/react-native/blob/master/packager/react-packager/.babelrc#L16

Fixes #5316
Closes https://github.com/facebook/react-native/pull/5422

Reviewed By: svcscm

Differential Revision: D2846422

Pulled By: davidaurelio

fb-gh-sync-id: a3e2f8909aa87dabab2b872c61b887e80220fb56
2016-01-21 07:23:34 -08:00
..
__tests__ Update jest to 0.7.1 2015-11-04 14:42:13 -08:00
ExceptionsManager.js Inline require ExceptionsManager dependencies 2015-12-16 04:02:30 -08:00
InitializeJavaScriptAppEngine.js Make the packager work with babel strict mode transform 2016-01-21 07:23:34 -08:00
SourceMap.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
checkFlowAtRuntime.js Make flow check async 2015-08-17 03:13:16 -07:00
loadSourceMap.js Fix 16 linter warnings in Examples/ 2015-10-16 04:03:23 -07:00
parseErrorStack.js Make flow check async 2015-08-17 03:13:16 -07:00
source-map-url.js [ReactNative] Use ASCII double quotes 2015-07-24 13:16:25 -08:00