Make sure we only pack one copy of react-dom (#2603)

Fixes https://github.com/vector-im/vector-web/issues/2601
This commit is contained in:
Richard van der Hoff 2016-11-18 17:52:44 +00:00 committed by GitHub
parent 8b0390f354
commit 67c882648f

View File

@ -57,7 +57,8 @@ module.exports = {
alias: {
// alias any requires to the react module to the one in our path, otherwise
// we tend to get the react source included twice when using npm link.
react: path.resolve('./node_modules/react'),
"react": path.resolve('./node_modules/react'),
"react-dom": path.resolve('./node_modules/react-dom'),
"react-addons-perf": path.resolve('./node_modules/react-addons-perf'),
// same goes for js-sdk