From 9c2f898b313f6db9c337c4c481858f43bf9d216d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 24 Aug 2017 19:11:40 -0400 Subject: [PATCH] Switch from React to Preact --- package.json | 4 ++-- webpack.config.js | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7426270..f833eb1 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,6 @@ "babel-preset-react": "^6.24.1", "babel-preset-stage-0": "^6.24.1", "css-loader": "^0.28.4", - "react": "^15.6.1", - "react-dom": "^15.6.1", "react-redux": "^5.0.5", "reactstrap": "^4.8.0", "redux": "^3.7.2", @@ -45,6 +43,8 @@ "history": "^4.7.2", "isomorphic-fetch": "^2.2.1", "node-sass": "^4.5.3", + "preact": "^8.2.4", + "preact-compat": "^3.17.0", "react-fontawesome": "^1.6.1", "react-router-dom": "^4.2.0", "react-router-redux": "^5.0.0-alpha.6", diff --git a/webpack.config.js b/webpack.config.js index bd7bd18..3cfeea2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,5 +52,11 @@ module.exports = { plugins:[ new webpack.HotModuleReplacementPlugin(), new webpack.EnvironmentPlugin(defines) - ] + ], + resolve: { + alias: { + "react": "preact-compat", + "react-dom": "preact-compat" + } + } };