From ab9f78496f03e6cbaac9c160a9b902d61d099afe 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/react-packager/src/DependencyResolver/haste/polyfills/require.js b/react-packager/src/DependencyResolver/haste/polyfills/require.js index 00955ba4..80705848 100644 --- a/react-packager/src/DependencyResolver/haste/polyfills/require.js +++ b/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;