Skip to content

Commit

Permalink
reduce bundle resize
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtran committed Mar 19, 2020
1 parent 40c3e44 commit ce7d290
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit ce7d290

Please sign in to comment.