Skip to content

Commit 597977d

Browse files
committedJul 20, 2018
peerDependencies as externals to decrease build size
1 parent 4748d12 commit 597977d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎webpack.config.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ module.exports = {
3030
rules: [jsLoader]
3131
},
3232
externals: {
33-
react: 'commonjs react'
33+
react: {
34+
root: 'React',
35+
commonjs2: 'react'
36+
},
37+
'react-dom': {
38+
root: 'ReactDOM',
39+
commonjs2: 'react-dom'
40+
},
41+
'@material-ui/core': '@material-ui/core'
3442
}
3543
};

0 commit comments

Comments
 (0)