Skip to content

Commit 9c4336c

Browse files
committed
upgrade dependencies
1 parent f12105b commit 9c4336c

File tree

3 files changed

+1881
-1554
lines changed

3 files changed

+1881
-1554
lines changed

Diff for: lib/build.js

+2-10
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,7 @@ function webpackConfig(dir, additionalConfig) {
1919
var babelOpts = {cacheDirectory: true};
2020
if (!fs.existsSync(path.join(process.cwd(), '.babelrc'))) {
2121
babelOpts.presets = [
22-
["env", {
23-
targets: {
24-
node: getBabelTarget(envConfig)
25-
}
26-
}]
27-
];
28-
babelOpts.plugins = [
29-
"transform-class-properties",
30-
"transform-object-assign",
31-
"transform-object-rest-spread"
22+
["@babel/preset-env", {targets: {node: getBabelTarget(envConfig)}}],
3223
];
3324
}
3425

@@ -47,6 +38,7 @@ function webpackConfig(dir, additionalConfig) {
4738
});
4839

4940
var webpackConfig = {
41+
mode: "production",
5042
module: {
5143
rules: [
5244
{

Diff for: package.json

+8-11
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@
2020
"url": "https://github.com/netlify/netlify-lambda/issues"
2121
},
2222
"dependencies": {
23-
"babel-core": "^6.26.0",
24-
"babel-loader": "^7.1.2",
25-
"babel-plugin-transform-class-properties": "^6.24.1",
26-
"babel-plugin-transform-object-assign": "^6.22.0",
27-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
28-
"babel-preset-env": "^1.6.1",
23+
"@babel/core": "^7.0.0",
24+
"@babel/preset-env": "^7.0.0",
25+
"babel-loader": "^8.0.0",
2926
"base-64": "^0.1.0",
30-
"body-parser": "^1.18.2",
31-
"commander": "^2.11.0",
32-
"express": "^4.16.2",
27+
"body-parser": "^1.18.3",
28+
"commander": "^2.17.1",
29+
"express": "^4.16.3",
3330
"express-logging": "^1.1.1",
3431
"toml": "^2.3.3",
35-
"webpack": "^3.8.1",
36-
"webpack-merge": "^4.1.1"
32+
"webpack": "^4.17.1",
33+
"webpack-merge": "^4.1.4"
3734
}
3835
}

0 commit comments

Comments
 (0)