diff --git a/aio/.angular-cli.json b/aio/.angular-cli.json index 8e6e6f240a..09bc7b2b71 100644 --- a/aio/.angular-cli.json +++ b/aio/.angular-cli.json @@ -13,7 +13,9 @@ "app/search/search-worker.js", "favicon.ico", "pwa-manifest.json", - "google385281288605d160.html" + "google385281288605d160.html", + { "glob": "custom-elements.min.js", "input": "../node_modules/@webcomponents/custom-elements", "output": "./assets/js" }, + { "glob": "native-shim.js", "input": "../node_modules/@webcomponents/custom-elements/src", "output": "./assets/js" } ], "index": "index.html", "main": "main.ts", diff --git a/aio/src/index.html b/aio/src/index.html index 7a279807c2..38d839ab8d 100644 --- a/aio/src/index.html +++ b/aio/src/index.html @@ -111,11 +111,24 @@ diff --git a/aio/src/polyfills.ts b/aio/src/polyfills.ts index a7743cf635..67309e5514 100644 --- a/aio/src/polyfills.ts +++ b/aio/src/polyfills.ts @@ -30,9 +30,6 @@ /** HACK: force import of environment.ts/environment.prod.ts to load env specific polyfills */ import './environments/environment'; -/** Add support for window.customElements */ -import '@webcomponents/custom-elements/custom-elements.min'; - /** ALL Firefox browsers require the following to support `@angular/animation`. **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`.