Re: [w3c/webcomponents] Non-class based example of customElement.define() (#587)

@nnmrts it's a little complicated at first, but all the tools are currently available. I've gotten my custom elements working in IE 10 (v1 elements using `custmElements.define`). What I do is transpile the modern code using Babel 6 along with babel-plugin-transform-builtin-classes, and for the Web Component polyfills I use webcomponents.js. Note that Babel 7 will feature that transform in core, but it hasn't worked for me yet, so I recommend sticking with Babel 6 for now.


It all works great, my elements work in IE 10 and Chrome 65 with a single build.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/587#issuecomment-369102317

Received on Wednesday, 28 February 2018 02:43:36 UTC