File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,13 @@ function webpackConfig(dir, additionalConfig) {
8
8
var config = conf . load ( ) ;
9
9
var babelOpts = { cacheDirectory : true } ;
10
10
if ( ! fs . existsSync ( path . join ( process . cwd ( ) , '.babelrc' ) ) ) {
11
- babelOpts . presets = [ "es2015" ] ;
11
+ babelOpts . presets = [
12
+ [ "env" , {
13
+ targets : {
14
+ node : "6.10"
15
+ }
16
+ } ]
17
+ ] ;
12
18
babelOpts . plugins = [
13
19
"transform-class-properties" ,
14
20
"transform-object-assign" ,
Original file line number Diff line number Diff line change 25
25
"babel-plugin-transform-class-properties" : " ^6.24.1" ,
26
26
"babel-plugin-transform-object-assign" : " ^6.22.0" ,
27
27
"babel-plugin-transform-object-rest-spread" : " ^6.26.0" ,
28
- "babel-preset-es2015 " : " ^6.24 .1" ,
28
+ "babel-preset-env " : " ^1.6 .1" ,
29
29
"base-64" : " ^0.1.0" ,
30
30
"body-parser" : " ^1.18.2" ,
31
31
"commander" : " ^2.11.0" ,
You can’t perform that action at this time.
0 commit comments