mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
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('module', 0);
|
||||||
_register('exports', 0);
|
_register('exports', 0);
|
||||||
|
|
||||||
_register('define', define);
|
|
||||||
_register('global', global);
|
_register('global', global);
|
||||||
_register('require', require);
|
_register('require', require);
|
||||||
_register('requireDynamic', require);
|
_register('requireDynamic', require);
|
||||||
_register('requireLazy', requireLazy);
|
_register('requireLazy', requireLazy);
|
||||||
|
|
||||||
define.amd = {};
|
|
||||||
|
|
||||||
global.define = define;
|
|
||||||
global.require = require;
|
global.require = require;
|
||||||
global.requireDynamic = require;
|
global.requireDynamic = require;
|
||||||
global.requireLazy = requireLazy;
|
global.requireLazy = requireLazy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user