From e11e19e7fe901514d3ade3e08ab6d0a8a2fc6e89 Mon Sep 17 00:00:00 2001 From: Rob Dodson Date: Tue, 21 Nov 2017 13:18:06 -0800 Subject: [PATCH] Add mention of custom-elements-es5-adapter Including the es5 adapter fixes the issue of transpiled custom elements not working in browsers like Chrome and Safari. --- content/docs/web-components.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/docs/web-components.md b/content/docs/web-components.md index c3d418b6..46befd58 100644 --- a/content/docs/web-components.md +++ b/content/docs/web-components.md @@ -58,3 +58,4 @@ customElements.define('x-search', XSearch); >Note: > >This code **will not** work if you transform classes with Babel. See [this issue](https://github.com/w3c/webcomponents/issues/587) for the discussion. +>Include the [custom-elements-es5-adapter](https://github.com/webcomponents/webcomponentsjs#custom-elements-es5-adapterjs) before you load your web components to fix this issue.