Skip to content

Commit

Permalink
upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardodino committed Aug 30, 2018
1 parent f12105b commit 9c4336c
Show file tree
Hide file tree
Showing 3 changed files with 1,881 additions and 1,554 deletions.
12 changes: 2 additions & 10 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ function webpackConfig(dir, additionalConfig) {
var babelOpts = {cacheDirectory: true};
if (!fs.existsSync(path.join(process.cwd(), '.babelrc'))) {
babelOpts.presets = [
["env", {
targets: {
node: getBabelTarget(envConfig)
}
}]
];
babelOpts.plugins = [
"transform-class-properties",
"transform-object-assign",
"transform-object-rest-spread"
["@babel/preset-env", {targets: {node: getBabelTarget(envConfig)}}],
];
}

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

var webpackConfig = {
mode: "production",
module: {
rules: [
{
Expand Down
19 changes: 8 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,16 @@
"url": "https://github.com/netlify/netlify-lambda/issues"
},
"dependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0",
"base-64": "^0.1.0",
"body-parser": "^1.18.2",
"commander": "^2.11.0",
"express": "^4.16.2",
"body-parser": "^1.18.3",
"commander": "^2.17.1",
"express": "^4.16.3",
"express-logging": "^1.1.1",
"toml": "^2.3.3",
"webpack": "^3.8.1",
"webpack-merge": "^4.1.1"
"webpack": "^4.17.1",
"webpack-merge": "^4.1.4"
}
}
Loading

0 comments on commit 9c4336c

Please sign in to comment.