Skip to content

Commit

Permalink
chore(): use core-js instead of es6-shim (#505)
Browse files Browse the repository at this point in the history
Replace es6-shim, es6-promise and reflect-metadata with core-js, because it coveres all required dependencies / shims in one single dependency / library.

Closes #477.
  • Loading branch information
devversion authored and jelbourn committed May 24, 2016
1 parent 7d822ee commit 388f55c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions angular-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ function _buildAppTree(defaults) {
return new Angular2App(defaults, inputNode, {
sourceDir: sourceDir,
polyfills: [
'vendor/es6-shim/es6-shim.js',
'vendor/reflect-metadata/Reflect.js',
'vendor/core-js/client/core.js',
'vendor/systemjs/dist/system.src.js',
'vendor/zone.js/dist/zone.js',
'vendor/hammerjs/hammer.min.js'
Expand All @@ -100,8 +99,7 @@ function _buildAppTree(defaults) {
'systemjs/dist/system-polyfills.js',
'systemjs/dist/system.src.js',
'zone.js/dist/*.js',
'es6-shim/es6-shim.js',
'reflect-metadata/*.js',
'core-js/client/core.js',
'rxjs/**/*.js',
'@angular/**/*.js',
'hammerjs/*.min.+(js|js.map)'
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"es6-promise": "^3.0.2",
"es6-shim": "^0.35.0",
"core-js": "^2.4.0",
"hammerjs": "^2.0.8",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.26",
"zone.js": "0.6.12"
Expand Down
3 changes: 1 addition & 2 deletions test/karma.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export function config(config) {
require('karma-firefox-launcher'),
],
files: [
{pattern: 'dist/vendor/es6-shim/es6-shim.js', included: true, watched: false},
{pattern: 'dist/vendor/reflect-metadata/Reflect.js', included: true, watched: false},
{pattern: 'dist/vendor/core-js/client/core.js', included: true, watched: false},
{pattern: 'dist/vendor/systemjs/dist/system-polyfills.js', included: true, watched: false},
{pattern: 'dist/vendor/systemjs/dist/system.src.js', included: true, watched: false},
{pattern: 'dist/vendor/zone.js/dist/zone.js', included: true, watched: false},
Expand Down
2 changes: 1 addition & 1 deletion typings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#26c98c8a9530c44f8c801ccc3b2057e2101187ee"
},
"ambientDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2",
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"hammerjs": "github:DefinitelyTyped/DefinitelyTyped/hammerjs/hammerjs.d.ts#de8e80dfe5360fef44d00c41257d5ef37add000a"
}
}

0 comments on commit 388f55c

Please sign in to comment.