Do not expose define references in require polyfill
Summary: See #406 Made sure the jest tests pass but didn't know a good unit test to add for this. Closes https://github.com/facebook/react-native/pull/427 Github Author: Jacob Gable <jacob.gable@gmail.com> Test Plan: * ./runJestTests * start app and click around
This commit is contained in:
parent
87599bfcd1
commit
63c2f80a7c
|
@ -586,15 +586,11 @@
|
|||
_register('module', 0);
|
||||
_register('exports', 0);
|
||||
|
||||
_register('define', define);
|
||||
_register('global', global);
|
||||
_register('require', require);
|
||||
_register('requireDynamic', require);
|
||||
_register('requireLazy', requireLazy);
|
||||
|
||||
define.amd = {};
|
||||
|
||||
global.define = define;
|
||||
global.require = require;
|
||||
global.requireDynamic = require;
|
||||
global.requireLazy = requireLazy;
|
||||
|
|
Loading…
Reference in New Issue