diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 40b0b12b..7f78bdc4 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -107,6 +107,7 @@ module.exports = { // Support React Native Web // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/ "react-native": "react-native-web", + 'react-dom': '@hot-loader/react-dom', }, plugins: [ // Prevents users from importing files from outside of src/ (or node_modules/). diff --git a/package-lock.json b/package-lock.json index e143c4b2..30c387b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -367,6 +367,18 @@ "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==" }, + "@hot-loader/react-dom": { + "version": "16.14.0", + "resolved": "https://registry.npmjs.org/@hot-loader/react-dom/-/react-dom-16.14.0.tgz", + "integrity": "sha512-EN9czvcLsMYmSDo5yRKZOAq3ZGRlDpad1gPtX0NdMMomJXcPE3yFSeFzE94X/NjOaiSVimB7LuqPYpkWVaIi4Q==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.19.1" + } + }, "@icons/material": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/@icons/material/-/material-0.2.4.tgz", diff --git a/package.json b/package.json index 1476879f..557d370c 100644 --- a/package.json +++ b/package.json @@ -183,6 +183,7 @@ "port": "3007", "devDependencies": { "@babel/runtime": "7.0.0-beta.51", + "@hot-loader/react-dom": "^16.14.0", "babel-cli": "^6.26.0", "babel-core": "^6.26.0", "babel-plugin-import": "^1.13.0",