File tree 3 files changed +1881
-1554
lines changed
3 files changed +1881
-1554
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,7 @@ function webpackConfig(dir, additionalConfig) {
19
19
var babelOpts = { cacheDirectory : true } ;
20
20
if ( ! fs . existsSync ( path . join ( process . cwd ( ) , '.babelrc' ) ) ) {
21
21
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 ) } } ] ,
32
23
] ;
33
24
}
34
25
@@ -47,6 +38,7 @@ function webpackConfig(dir, additionalConfig) {
47
38
} ) ;
48
39
49
40
var webpackConfig = {
41
+ mode : "production" ,
50
42
module : {
51
43
rules : [
52
44
{
Original file line number Diff line number Diff line change 20
20
"url" : " https://github.com/netlify/netlify-lambda/issues"
21
21
},
22
22
"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" ,
29
26
"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 " ,
33
30
"express-logging" : " ^1.1.1" ,
34
31
"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 "
37
34
}
38
35
}
You can’t perform that action at this time.
0 commit comments