Commit 4ad5e2e0 authored by Luke Edwards's avatar Luke Edwards Committed by Tim Neutkens

Examples: Update Inferno & Preact (#1407)

* clean & bump inferno & preact pkgs

* reenable UglifyJS for preact
parent 624cab99
...@@ -7,13 +7,11 @@ ...@@ -7,13 +7,11 @@
"start": "NODE_ENV=production node server.js" "start": "NODE_ENV=production node server.js"
}, },
"dependencies": { "dependencies": {
"inferno": "^1.0.7", "inferno": "^1.4.0",
"inferno-compat": "^1.0.7", "inferno-compat": "^1.4.0",
"inferno-server": "^1.3.0-rc.9", "inferno-server": "^1.4.0",
"module-alias": "^2.0.0", "module-alias": "^2.0.0",
"next": "^2.0.0-beta", "next": "^2.0.0-beta"
"react": "^15.4.2",
"react-dom": "^15.4.2"
}, },
"author": "", "author": "",
"license": "MIT" "license": "MIT"
......
...@@ -11,10 +11,6 @@ module.exports = { ...@@ -11,10 +11,6 @@ module.exports = {
'react-dom': 'preact-compat/dist/preact-compat' 'react-dom': 'preact-compat/dist/preact-compat'
} }
// Disable uglify. This has been fixed in https://github.com/developit/preact-compat/issues/155.
// Can be removed once there is a new preact-compat release.
config.plugins = config.plugins.filter((plugin) => (plugin.constructor.name !== 'UglifyJsPlugin'))
return config return config
} }
} }
{ {
"name": "hello-world", "name": "using-preact",
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "node server.js", "dev": "node server.js",
...@@ -9,15 +9,9 @@ ...@@ -9,15 +9,9 @@
"dependencies": { "dependencies": {
"module-alias": "^2.0.0", "module-alias": "^2.0.0",
"next": "^2.0.0-beta", "next": "^2.0.0-beta",
"preact": "^7.1.0", "preact": "^7.2.0",
"preact-compat": "^3.9.4", "preact-compat": "^3.14.0"
"react": "^15.4.2",
"react-dom": "^15.4.2"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC"
"devDependencies": {
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0"
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment