From 74db97c644b08129d652e8b1a9228b156dfa3bff Mon Sep 17 00:00:00 2001 From: mochaaP Date: Fri, 17 Jun 2022 13:20:49 +0800 Subject: [PATCH] Revert "expose React globals" This reverts commit ccbb4f42f05beb5302e0a97ec2d51182ad89b7fc. --- webpack.config.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/webpack.config.ts b/webpack.config.ts index 09a853cd..29cfc16e 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -129,15 +129,6 @@ export default function (env?: Env): webpack.Configuration[] { assert: false, }, }, - externals: Object.assign( - { jquery: 'jQuery', bootstrap: 'bootstrap', 'admin-lte': 'adminlte' }, - isDev - ? {} - : { - react: 'React', - 'react-dom': 'ReactDOM', - }, - ) as Record, optimization: { // @ts-ignore minimizer: [new CssMinimizerPlugin({}), '...'],