Browse Source

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.
main
Rob Dodson 7 years ago
committed by GitHub
parent
commit
e11e19e7fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      content/docs/web-components.md

1
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.

Loading…
Cancel
Save