Skip to content

Commit

Permalink
fix(polyfills): move polyfills to scripts array
Browse files Browse the repository at this point in the history
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only.

Fix angular#2752
Fix angular#3309
  • Loading branch information
filipesilva committed Jan 1, 2017
1 parent 2a513ca commit 92e6387
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
2 changes: 0 additions & 2 deletions packages/angular-cli/blueprints/ng2/files/__path__/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './polyfills.ts';

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { environment } from './environments/environment';
Expand Down
19 changes: 0 additions & 19 deletions packages/angular-cli/blueprints/ng2/files/__path__/polyfills.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/angular-cli/blueprints/ng2/files/__path__/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './polyfills.ts';

import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy.js';
import 'zone.js/dist/sync-test';
Expand Down
5 changes: 4 additions & 1 deletion packages/angular-cli/blueprints/ng2/files/angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"styles": [
"styles.<%= styleExt %>"
],
"scripts": [],
"scripts": [
"<%= relativeRootPath %>/node_modules/core-js/client/shim.min.js",
"<%= relativeRootPath %>/node_modules/zone.js/dist/zone.js"
],
"environments": {
"source": "environments/environment.ts",
"dev": "environments/environment.ts",
Expand Down

0 comments on commit 92e6387

Please sign in to comment.