From ea01e581cdf217be148f758ffc449708cf616ae8 Mon Sep 17 00:00:00 2001 From: jos Date: Fri, 6 Jan 2017 23:17:09 +0100 Subject: [PATCH] Switched to `preact-compat` --- gulpfile.js | 13 +++++++++++-- package.json | 5 ++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 7b8e9d4..a29bd07 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -63,6 +63,13 @@ const loaders = [ { test: /\.svg$/, loader: 'svg-url-loader' } ] +const resolve = { + 'alias': { + 'react': 'preact-compat', + 'react-dom': 'preact-compat' + } +} + // create a single instance of the compiler to allow caching const compiler = webpack({ entry: ENTRY, @@ -81,7 +88,8 @@ const compiler = webpack({ : [bannerPlugin, productionEnvPlugin, minifyPlugin], module: { loaders - } + }, + resolve }) // create a single instance of the compiler to allow caching @@ -105,7 +113,8 @@ const compilerMinimalist = webpack({ ], module: { loaders - } + }, + resolve }) const externals = { diff --git a/package.json b/package.json index e3019ee..2dc8d20 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,8 @@ "brace": "0.9.1", "javascript-natural-sort": "0.7.1", "lodash": "4.17.4", - "react": "15.4.1", - "react-dom": "15.4.1", - "react-scroll": "1.4.4" + "preact": "7.1.0", + "preact-compat": "3.9.4" }, "devDependencies": { "ava": "0.17.0",