You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There exist plugins for Babel that work around some issues when transpiling web components. The plugins (e.g. https://github.com/WebReflection/babel-plugin-transform-builtin-classes) wrap classes that extend HTMLElement (or any other native class you care to specify) during transpilation.
However, when using mixwith.js, the fact that a class extends HTMLElement is hidden from the babel plugin at build time since it is passed as a function parameter. Is there any way to use mixwith, while still using the class MyElement extends HTMLElement syntax?
The text was updated successfully, but these errors were encountered:
oravecz
changed the title
Extending HTMLElement abd Babel
Extending HTMLElement and Babel
Aug 14, 2017
There exist plugins for Babel that work around some issues when transpiling web components. The plugins (e.g. https://github.com/WebReflection/babel-plugin-transform-builtin-classes) wrap classes that extend HTMLElement (or any other native class you care to specify) during transpilation.
However, when using mixwith.js, the fact that a class extends HTMLElement is hidden from the babel plugin at build time since it is passed as a function parameter. Is there any way to use mixwith, while still using the
class MyElement extends HTMLElement
syntax?The text was updated successfully, but these errors were encountered: