From ffb48ad98d0ec4622673236c026609f2f61adc62 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 25 Mar 2019 18:46:21 -0400 Subject: [PATCH] fix(@schematics/angular): remove unused core-js dependency from new projects Required polyfills are now managed directly by the build system. If additional polyfills are required, packages can be manually added as needed. --- packages/schematics/angular/library/files/src/test.ts.template | 1 - .../schematics/angular/workspace/files/package.json.template | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/schematics/angular/library/files/src/test.ts.template b/packages/schematics/angular/library/files/src/test.ts.template index e11ff1c97b82..978c64fb83f4 100644 --- a/packages/schematics/angular/library/files/src/test.ts.template +++ b/packages/schematics/angular/library/files/src/test.ts.template @@ -1,6 +1,5 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'core-js/es7/reflect'; import 'zone.js/dist/zone'; import 'zone.js/dist/zone-testing'; import { getTestBed } from '@angular/core/testing'; diff --git a/packages/schematics/angular/workspace/files/package.json.template b/packages/schematics/angular/workspace/files/package.json.template index efa062d7908e..35afff10fc40 100644 --- a/packages/schematics/angular/workspace/files/package.json.template +++ b/packages/schematics/angular/workspace/files/package.json.template @@ -19,7 +19,6 @@ "@angular/platform-browser": "<%= latestVersions.Angular %>", "@angular/platform-browser-dynamic": "<%= latestVersions.Angular %>", "@angular/router": "<%= latestVersions.Angular %>", - "core-js": "^2.5.4", "rxjs": "<%= latestVersions.RxJs %>", "tslib": "<%= latestVersions.TsLib %>", "zone.js": "<%= latestVersions.ZoneJs %>"