Skip to content

Commit 4d46c4a

Browse files
rdlabohansl
authored andcommitted
fix(@schematics/angular): support Fetch as Google(Google bot) (#11815)
1 parent aa25a33 commit 4d46c4a

File tree

1 file changed

+8
-1
lines changed
  • packages/schematics/angular/application/files/src

1 file changed

+8
-1
lines changed

packages/schematics/angular/application/files/src/polyfills.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,19 @@
2828
// import 'core-js/es6/math';
2929
// import 'core-js/es6/string';
3030
// import 'core-js/es6/date';
31-
// import 'core-js/es6/array';
3231
// import 'core-js/es6/regexp';
3332
// import 'core-js/es6/map';
3433
// import 'core-js/es6/weak-map';
3534
// import 'core-js/es6/set';
3635

36+
/**
37+
* If your app need to indexed by Google Search, your app require polyfills 'core-js/es6/array'
38+
* Google bot use ES5.
39+
* FYI: Googlebot uses a renderer following the similar spec to Chrome 41.
40+
* https://developers.google.com/search/docs/guides/rendering
41+
**/
42+
// import 'core-js/es6/array';
43+
3744
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
3845
// import 'classlist.js'; // Run `npm install --save classlist.js`.
3946

0 commit comments

Comments
 (0)