mirror of https://github.com/status-im/metro.git
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
7f6255b16f
commit
ab9f78496f
|
@ -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…
Reference in New Issue