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
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ module.exports = {
alias: { alias: {
// alias any requires to the react module to the one in our path, otherwise // 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. // 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'), "react-addons-perf": path.resolve('./node_modules/react-addons-perf'),
// same goes for js-sdk // same goes for js-sdk