I\'ve a simple web component following the latest web components v1 class syntax, it works great in Chrome and Firefox/Edge (with a polyfill) but I\'d like it to run in IE11
To compile Custom Element classes with Babel, you can use this plugin from Github.
It will use Reflect.construct()
instead of new
, which is not permitted with HTMLElement
objects.
One solution is to use the native-shim available with this polyfill https://github.com/webcomponents/custom-elements
It's not perfect though, would like to find a cleaner solution.