1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Examples: Update Inferno & Preact (#1407)

* clean & bump inferno & preact pkgs

* reenable UglifyJS for preact
This commit is contained in:
Luke Edwards 2017-03-13 14:05:04 -07:00 committed by Tim Neutkens
parent 624cab9909
commit 4ad5e2e0dc
3 changed files with 8 additions and 20 deletions

View file

@ -7,13 +7,11 @@
"start": "NODE_ENV=production node server.js"
},
"dependencies": {
"inferno": "^1.0.7",
"inferno-compat": "^1.0.7",
"inferno-server": "^1.3.0-rc.9",
"inferno": "^1.4.0",
"inferno-compat": "^1.4.0",
"inferno-server": "^1.4.0",
"module-alias": "^2.0.0",
"next": "^2.0.0-beta",
"react": "^15.4.2",
"react-dom": "^15.4.2"
"next": "^2.0.0-beta"
},
"author": "",
"license": "MIT"

View file

@ -11,10 +11,6 @@ module.exports = {
'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
}
}

View file

@ -1,5 +1,5 @@
{
"name": "hello-world",
"name": "using-preact",
"version": "1.0.0",
"scripts": {
"dev": "node server.js",
@ -9,15 +9,9 @@
"dependencies": {
"module-alias": "^2.0.0",
"next": "^2.0.0-beta",
"preact": "^7.1.0",
"preact-compat": "^3.9.4",
"react": "^15.4.2",
"react-dom": "^15.4.2"
"preact": "^7.2.0",
"preact-compat": "^3.14.0"
},
"author": "",
"license": "ISC",
"devDependencies": {
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0"
}
"license": "ISC"
}