Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending HTMLElement and Babel #29

Open
oravecz opened this issue Aug 14, 2017 · 0 comments
Open

Extending HTMLElement and Babel #29

oravecz opened this issue Aug 14, 2017 · 0 comments

Comments

@oravecz
Copy link

oravecz commented 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?

@oravecz oravecz changed the title Extending HTMLElement abd Babel Extending HTMLElement and Babel Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant