From ce7d2906a653d9ba5dca09f46dda61b98de34f60 Mon Sep 17 00:00:00 2001 From: David Tran Date: Thu, 19 Mar 2020 16:56:54 +0700 Subject: [PATCH] reduce bundle resize --- webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 8f30bcd..8b20179 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,7 +17,13 @@ module.exports = { }, externals: { react: 'react', - reactDOM: 'react-dom' + 'react-dom': { + root: 'ReactDOM', + commonjs2: 'react-dom', + commonjs: 'react-dom', + amd: 'react-dom', + umd: 'react-dom', + }, }, module: { rules: [