From 78361096fa5b7924dc28b28fca6a9affd5537fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=8A=E5=8E=9F=E6=98=8C=E5=BD=A6?= Date: Fri, 28 Sep 2018 02:24:44 +0900 Subject: [PATCH] =?UTF-8?q?Fix(@schematics/angular):=20support=20`Fetch=20?= =?UTF-8?q?as=20Google`=EF=BC=88Google=20bot)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../angular/application/files/src/polyfills.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/schematics/angular/application/files/src/polyfills.ts b/packages/schematics/angular/application/files/src/polyfills.ts index 074b89d38e40..6bf2547537d3 100644 --- a/packages/schematics/angular/application/files/src/polyfills.ts +++ b/packages/schematics/angular/application/files/src/polyfills.ts @@ -28,12 +28,19 @@ // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; -// import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; +/** + * If your app need to indexed by Google Search, your app require polyfills 'core-js/es6/array' + * Google bot use ES5. + * FYI: Googlebot uses a renderer following the similar spec to Chrome 41. + * https://developers.google.com/search/docs/guides/rendering + **/ +// import 'core-js/es6/array'; + /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`.