From 8525756f1ac030fc1a14b3f80430ff8487078131 Mon Sep 17 00:00:00 2001 From: Elizabeth Craig Date: Thu, 21 Jan 2021 14:31:15 -0800 Subject: [PATCH] Revert "Fix Webpack externals config to support more than global variable (#15773)" This reverts commit 9ffa0f0a5eaacfa5414dbcdaae75d7753087a0b6. --- scripts/webpack/webpack-resources.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/webpack/webpack-resources.js b/scripts/webpack/webpack-resources.js index 0f3218fc497f7..48d62bbb083d6 100644 --- a/scripts/webpack/webpack-resources.js +++ b/scripts/webpack/webpack-resources.js @@ -205,16 +205,8 @@ module.exports = { : output, externals: { - react: { - commonjs: 'react', - amd: 'react', - root: 'React', - }, - 'react-dom': { - commonjs: 'react-dom', - amd: 'react-dom', - root: 'ReactDOM', - }, + react: 'React', + 'react-dom': 'ReactDOM', }, resolve: {