diff --git a/addon/ng2/blueprints/ng2/files/angular-cli-build.js b/addon/ng2/blueprints/ng2/files/angular-cli-build.js index dad887ff3dba..16a5a4f6dfb1 100644 --- a/addon/ng2/blueprints/ng2/files/angular-cli-build.js +++ b/addon/ng2/blueprints/ng2/files/angular-cli-build.js @@ -8,8 +8,7 @@ module.exports = function(defaults) { 'systemjs/dist/system-polyfills.js', 'systemjs/dist/system.src.js', 'zone.js/dist/**/*.+(js|js.map)', - 'es6-shim/es6-shim.js', - 'reflect-metadata/**/*.+(js|js.map)', + 'core-js/client/shim.min.+(js|js.map)', 'rxjs/**/*.+(js|js.map)', '@angular/**/*.+(js|js.map)' ] diff --git a/addon/ng2/blueprints/ng2/files/config/karma.conf.js b/addon/ng2/blueprints/ng2/files/config/karma.conf.js index d39036fa52ff..f14020b1ccdf 100644 --- a/addon/ng2/blueprints/ng2/files/config/karma.conf.js +++ b/addon/ng2/blueprints/ng2/files/config/karma.conf.js @@ -14,9 +14,8 @@ module.exports = function (config) { } }, files: [ - { pattern: 'dist/vendor/es6-shim/es6-shim.js', included: true, watched: false }, + { pattern: 'dist/vendor/core-js/client/shim.min.js', included: true, watched: false }, { pattern: 'dist/vendor/zone.js/dist/zone.js', included: true, watched: false }, - { pattern: 'dist/vendor/reflect-metadata/Reflect.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/async-test.js', included: true, watched: false }, diff --git a/addon/ng2/blueprints/ng2/files/package.json b/addon/ng2/blueprints/ng2/files/package.json index 8c9823b92cfb..7a32017fad42 100644 --- a/addon/ng2/blueprints/ng2/files/package.json +++ b/addon/ng2/blueprints/ng2/files/package.json @@ -20,8 +20,7 @@ "@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-shim": "^0.35.0", - "reflect-metadata": "0.1.3", + "core-js": "^2.4.0", "rxjs": "5.0.0-beta.6", "systemjs": "0.19.26", "zone.js": "^0.6.12" diff --git a/addon/ng2/blueprints/ng2/files/typings.json b/addon/ng2/blueprints/ng2/files/typings.json index 21f9888ab067..d46dc6f550e7 100644 --- a/addon/ng2/blueprints/ng2/files/typings.json +++ b/addon/ng2/blueprints/ng2/files/typings.json @@ -5,7 +5,7 @@ "selenium-webdriver": "registry:dt/selenium-webdriver#2.44.0+20160317120654" }, "ambientDependencies": { - "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654"<% if (isMobile) {%>, + "core-js": "registry:dt/core-js#0.0.0+20160317120654"<% if (isMobile) {%>, "node": "registry:dt/node#4.0.0+20160509154515" <% } %> } } diff --git a/lib/broccoli/angular2-app.js b/lib/broccoli/angular2-app.js index 328163be57a3..b6dd7ff30b34 100644 --- a/lib/broccoli/angular2-app.js +++ b/lib/broccoli/angular2-app.js @@ -33,8 +33,7 @@ class Angular2App extends BroccoliPlugin { || (this.ngConfig.defaults && this.ngConfig.defaults.sourceDir) || 'src'; this._options.polyfills = this._options.polyfills || [ - 'vendor/es6-shim/es6-shim.js', - 'vendor/reflect-metadata/Reflect.js', + 'vendor/core-js/client/shim.min.js', 'vendor/systemjs/dist/system.src.js', 'vendor/zone.js/dist/zone.js' ]; diff --git a/tests/e2e/e2e_workflow.spec.js b/tests/e2e/e2e_workflow.spec.js index f4ecf891a517..f717afa4809d 100644 --- a/tests/e2e/e2e_workflow.spec.js +++ b/tests/e2e/e2e_workflow.spec.js @@ -87,7 +87,7 @@ describe('Basic end-to-end Workflow', function () { // Check the index.html to have no handlebar tokens in it. const indexHtml = fs.readFileSync(path.join(process.cwd(), 'dist/index.html'), 'utf-8'); expect(indexHtml).to.not.include('{{'); - expect(indexHtml).to.include('vendor/es6-shim/es6-shim.js'); + expect(indexHtml).to.include('vendor/core-js/client/shim.min.js'); }) .then(function () { // Also does not create new things in GIT.