Skip to content

Commit 32a8c20

Browse files
committed
angular-cli 7.2.0 latest defaults
1 parent e64ae59 commit 32a8c20

File tree

3 files changed

+179
-166
lines changed

3 files changed

+179
-166
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
"rxjs": "~6.3.3"
4242
},
4343
"devDependencies": {
44-
"@angular-devkit/build-angular": "~0.11.0",
45-
"@angular-devkit/build-ng-packagr": "~0.11.0",
46-
"@angular/cli": "~7.1.0",
44+
"@angular-devkit/build-angular": "~0.12.0",
45+
"@angular-devkit/build-ng-packagr": "~0.12.0",
46+
"@angular/cli": "~7.2.0",
4747
"@angular/common": "^7.0.0",
4848
"@angular/compiler": "^7.0.0",
4949
"@angular/compiler-cli": "^7.0.0",
@@ -72,7 +72,7 @@
7272
"tsickle": ">=0.34.0",
7373
"tslib": "^1.9.0",
7474
"tslint": "~5.11.0",
75-
"typescript": "~3.1.6",
75+
"typescript": "~3.2.2",
7676
"zone.js": "~0.8.26"
7777
},
7878
"engines": {

polyfills.ts

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
21+
/** IE9, IE10, IE11, and Chrome <55 requires all of the following polyfills.
22+
* This also includes Android Emulators with older versions of Chrome and Google Search/Googlebot
23+
*/
24+
2225
import 'core-js/es6/symbol';
2326
import 'core-js/es6/object';
2427
import 'core-js/es6/function';
@@ -34,13 +37,6 @@ import 'core-js/es6/map';
3437
import 'core-js/es6/weak-map';
3538
import 'core-js/es6/set';
3639

37-
/**
38-
* If the application will be indexed by Google Search, the following is required.
39-
* Googlebot uses a renderer based on Chrome 41.
40-
* https://developers.google.com/search/docs/guides/rendering
41-
**/
42-
// import 'core-js/es6/array';
43-
4440
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
4541
// import 'classlist.js'; // Run `npm install --save classlist.js`.
4642

@@ -51,24 +47,33 @@ import 'core-js/es6/set';
5147
* Web Animations `@angular/platform-browser/animations`
5248
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
5349
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
54-
**/
50+
*/
5551
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5652

5753
/**
5854
* By default, zone.js will patch all possible macroTask and DomEvents
5955
* user can disable parts of macroTask/DomEvents patch by setting following flags
56+
* because those flags need to be set before `zone.js` being loaded, and webpack
57+
* will put import in the top of bundle, so user need to create a separate file
58+
* in this directory (for example: zone-flags.ts), and put the following flags
59+
* into that file, and then add the following code before importing zone.js.
60+
* import './zone-flags.ts';
61+
*
62+
* The flags allowed in zone-flags.ts are listed here.
63+
*
64+
* The following flags will work for all browsers.
65+
*
66+
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
67+
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
68+
* (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
69+
*
70+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
71+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
72+
*
73+
* (window as any).__Zone_enable_cross_context_check = true;
74+
*
6075
*/
6176

62-
// (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
63-
// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
64-
// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
65-
66-
/*
67-
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
68-
* with the following flag, it will bypass `zone.js` patch for IE/Edge
69-
*/
70-
// (window as any).__Zone_enable_cross_context_check = true;
71-
7277
/***************************************************************************************************
7378
* Zone JS is required by default for Angular itself.
7479
*/

0 commit comments

Comments
 (0)