Skip to content

Commit

Permalink
refactor: publish es6 instead of es5 (angular#4502)
Browse files Browse the repository at this point in the history
ES5 is necessary in projects because Uglify does not support ES6.
  • Loading branch information
hansl authored and MRHarrison committed Feb 9, 2017
1 parent 2cedd4d commit 801b043
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"moduleResolution": "node",
"outDir": "../dist/out-tsc-e2e",
"sourceMap": true,
"target": "es5",
"target": "es6",
"typeRoots": [
"../node_modules/@types"
]
Expand Down
2 changes: 1 addition & 1 deletion packages/@angular/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "/",
"target": "es5",
"target": "es6",
"lib": [
"es2016"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/json-schema/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"es2016",
"dom"
],
"target": "es5",
"target": "es6",
"sourceMap": true,
"sourceRoot": "/",
"baseUrl": "./",
Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/logger/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"es2016",
"dom"
],
"target": "es5",
"target": "es6",
"sourceMap": true,
"sourceRoot": "/",
"baseUrl": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/webpack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"es2016",
"dom"
],
"target": "es5",
"target": "es6",
"sourceMap": true,
"sourceRoot": "/",
"baseUrl": "./",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"sourceMap": true,
"sourceRoot": "",
"inlineSourceMap": true,
"target": "es5",
"target": "es6",
"lib": [
"es2016"
],
Expand All @@ -27,8 +27,8 @@
],
"paths": {
"@angular/cli/*": [ "./packages/@angular/cli/*" ],
"@angular-cli/ast-tools": [ "./packages/ast-tools/src" ],
"@angular-cli/base-href-webpack": [ "./packages/base-href-webpack/src" ],
"@ngtools/json-schema": [ "./packages/json-schema/src" ],
"@ngtools/logger": [ "./packages/logger/src" ],
"@ngtools/webpack": [ "./packages/webpack/src" ]
}
},
Expand Down

0 comments on commit 801b043

Please sign in to comment.