gatsby-plugin-preact
Advanced tools
Comparing version 1.0.0-alpha12-alpha.1dc37e8b to 1.0.0-alpha12-alpha.1fdb9004
@@ -1,15 +0,14 @@ | ||
'use strict'; | ||
"use strict"; | ||
exports.modifyWebpackConfig = function (_ref) { | ||
var args = _ref.args; | ||
var config = args.config, | ||
stage = args.stage; | ||
var config = _ref.config, | ||
stage = _ref.stage; | ||
// Requiring the server version of React-dom is hardcoded right now | ||
// in the development server. So we'll just avoid loading Preact there | ||
// for now. | ||
if (stage !== `develop-html`) { | ||
config._config.resolve.alias = { | ||
react: `preact-compat`, | ||
'react-dom': `preact-compat` | ||
"react-dom": `preact-compat` | ||
}; | ||
@@ -16,0 +15,0 @@ } |
{ | ||
"name": "gatsby-plugin-preact", | ||
"version": "1.0.0-alpha12-alpha.1dc37e8b", | ||
"version": "1.0.0-alpha12-alpha.1fdb9004", | ||
"description": "A Gatsby plugin which replaces React with Preact", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1983
15