mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 09:16:38 +00:00
Update webpack to 4.27.0 and babel to 7.2.0
Change-type: patch
This commit is contained in:
parent
b8fc83577c
commit
a78866069b
1624
npm-shrinkwrap.json
generated
1624
npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -93,12 +93,12 @@
|
|||||||
"winusb-driver-generator": "1.2.4"
|
"winusb-driver-generator": "1.2.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@babel/core": "7.2.0",
|
||||||
|
"@babel/plugin-proposal-function-bind": "7.2.0",
|
||||||
|
"@babel/preset-env": "7.2.0",
|
||||||
|
"@babel/preset-react": "7.0.0",
|
||||||
"angular-mocks": "1.6.3",
|
"angular-mocks": "1.6.3",
|
||||||
"babel-core": "6.26.0",
|
"babel-loader": "8.0.4",
|
||||||
"babel-loader": "7.1.2",
|
|
||||||
"babel-preset-env": "1.6.1",
|
|
||||||
"babel-preset-react": "6.24.1",
|
|
||||||
"babel-preset-stage-0": "6.24.1",
|
|
||||||
"electron": "1.7.13",
|
"electron": "1.7.13",
|
||||||
"electron-builder": "19.40.0",
|
"electron-builder": "19.40.0",
|
||||||
"electron-mocha": "6.0.1",
|
"electron-mocha": "6.0.1",
|
||||||
@ -123,7 +123,8 @@
|
|||||||
"simple-progress-webpack-plugin": "1.1.2",
|
"simple-progress-webpack-plugin": "1.1.2",
|
||||||
"spectron": "3.7.3",
|
"spectron": "3.7.3",
|
||||||
"versionist": "4.0.1",
|
"versionist": "4.0.1",
|
||||||
"webpack": "github:jviotti/webpack#symlink-fix",
|
"webpack": "4.27.0",
|
||||||
|
"webpack-cli": "3.1.2",
|
||||||
"webpack-node-externals": "1.7.2"
|
"webpack-node-externals": "1.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,12 +17,16 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const _ = require('lodash')
|
const _ = require('lodash')
|
||||||
const webpack = require('webpack')
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')
|
const SimpleProgressWebpackPlugin = require('simple-progress-webpack-plugin')
|
||||||
const nodeExternals = require('webpack-node-externals')
|
const nodeExternals = require('webpack-node-externals')
|
||||||
|
|
||||||
const commonConfig = {
|
const commonConfig = {
|
||||||
|
mode: 'production',
|
||||||
|
optimization: {
|
||||||
|
// Minification breaks angular.
|
||||||
|
minimize: false
|
||||||
|
},
|
||||||
target: 'electron-main',
|
target: 'electron-main',
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
@ -32,7 +36,8 @@ const commonConfig = {
|
|||||||
use: {
|
use: {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
presets: [ 'react', 'env', 'stage-0' ],
|
presets: [ '@babel/preset-react', '@babel/preset-env' ],
|
||||||
|
plugins: [ '@babel/plugin-proposal-function-bind' ],
|
||||||
cacheDirectory: true
|
cacheDirectory: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,9 +57,6 @@ const commonConfig = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
new SimpleProgressWebpackPlugin({
|
new SimpleProgressWebpackPlugin({
|
||||||
format: process.env.WEBPACK_PROGRESS || 'verbose'
|
format: process.env.WEBPACK_PROGRESS || 'verbose'
|
||||||
}),
|
|
||||||
new webpack.DefinePlugin({
|
|
||||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production')
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user