Upgrade to Webpack4

This commit is contained in:
Labhansh Agrawal 2019-09-05 12:19:56 +05:30 committed by Benjamin Staneck
parent ec259be982
commit 6c4a064f22
2 changed files with 6 additions and 3 deletions

View file

@ -209,6 +209,7 @@
"styled-jsx": "2.2.6",
"stylis": "3.5.0",
"uuid": "3.1.0",
"webpack-cli": "3.3.7",
"xterm": "https://registry.npmjs.org/@zeit/xterm/-/xterm-3.12.0-1.tgz"
},
"devDependencies": {
@ -218,7 +219,7 @@
"babel-loader": "7.1.2",
"babel-preset-babili": "0.1.4",
"babel-preset-react": "6.24.1",
"copy-webpack-plugin": "4.3.1",
"copy-webpack-plugin": "5.0.4",
"cross-env": "5.1.4",
"electron": "3.1.3",
"electron-builder": "20.38.2",
@ -236,7 +237,7 @@
"proxyquire": "1.8.0",
"spectron": "3.8.0",
"style-loader": "0.19.1",
"webpack": "3.10.0"
"webpack": "4.39.3"
},
"resolutions": {
"rc": "1.2.3"

View file

@ -8,6 +8,7 @@ const isProd = nodeEnv === 'production';
module.exports = [
{
mode: 'none',
name: 'hyper',
resolve: {
extensions: ['.js', '.jsx']
@ -51,9 +52,10 @@ module.exports = [
}
])
],
target: 'electron'
target: 'electron-renderer'
},
{
mode: 'none',
name: 'hyper-cli',
resolve: {
extensions: ['.js', '.jsx', '.json']