File tree 3 files changed +23
-6
lines changed
3 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"presets": [
3
- "es2015",
4
- "es2016",
5
- "es2017",
6
- "stage-0"
3
+ ["babel-preset-env", {
4
+ "targets": {
5
+ "node": "6.2"
6
+ }
7
+ }]
7
8
],
8
9
"plugins": [
9
10
<%_ if(filters.flow) { -%>
10
11
"transform-flow-comments",
11
12
<%_ } -%>
12
- "angular2-annotations",
13
13
"transform-runtime",
14
14
"transform-decorators-legacy"
15
15
]
Original file line number Diff line number Diff line change 118
118
"babel-plugin-transform-class-properties" : " ^6.6.0" ,
119
119
"babel-plugin-transform-runtime" : " ^6.6.0" ,
120
120
"babel-plugin-istanbul" : " ^4.1.4" ,
121
+ "babel-preset-env" : " ^1.6.1" ,
121
122
"babel-preset-es2015" : " ^6.6.0" ,
122
123
"eslint" : " ^2.12.0" ,
123
124
"del" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -122,7 +122,23 @@ module.exports = function makeWebpackConfig(options) {
122
122
use : [ {
123
123
loader : 'babel-loader' ,
124
124
options : {
125
- plugins : TEST ? [ 'istanbul' ] : [ ] ,
125
+ presets : [
126
+ [ 'babel-preset-env' , {
127
+ // debug: true,
128
+ targets : {
129
+ browsers : [ 'last 2 versions' , 'not ie < 11' ] ,
130
+ } ,
131
+ modules : false ,
132
+ } ]
133
+ ] ,
134
+ plugins : [
135
+ 'transform-flow-comments' ,
136
+ 'angular2-annotations' ,
137
+ 'transform-runtime' ,
138
+ 'transform-decorators-legacy' ,
139
+ 'transform-class-properties' ,
140
+ 'transform-export-extensions' ,
141
+ ] . concat ( TEST ? [ 'istanbul' ] : [ ] ) ,
126
142
}
127
143
} ] . concat ( DEV ? '@angularclass/hmr-loader' : [ ] ) ,
128
144
include : [
You can’t perform that action at this time.
0 commit comments