Revert "expose React globals"

This reverts commit ccbb4f42f0.
This commit is contained in:
mochaaP 2022-06-17 13:20:49 +08:00
parent ccbb4f42f0
commit 74db97c644

View File

@ -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<string, string>,
optimization: {
// @ts-ignore
minimizer: [new CssMinimizerPlugin({}), '...'],