From 1a8beaa04ea115789d940d519dd7d1349dd8999e Mon Sep 17 00:00:00 2001 From: Jacob Gable Date: Tue, 31 Mar 2015 23:14:46 -0700 Subject: [PATCH] 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 Test Plan: * ./runJestTests * start app and click around --- .../src/DependencyResolver/haste/polyfills/require.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packager/react-packager/src/DependencyResolver/haste/polyfills/require.js b/packager/react-packager/src/DependencyResolver/haste/polyfills/require.js index 00955ba4a7e0c9..8070584804ab08 100644 --- a/packager/react-packager/src/DependencyResolver/haste/polyfills/require.js +++ b/packager/react-packager/src/DependencyResolver/haste/polyfills/require.js @@ -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;