WebReflection / hyperHTML-Element

An extensible class to define hyperHTML based Custom Elements.
ISC License
202 stars 25 forks source link

Bundling with browserify/babelify not working #37

Closed justintaddei closed 6 years ago

justintaddei commented 6 years ago

Maybe I'm doing something very wrong but I can't seem to get hyperhtml-element to play nice with babel.

If I import HyperHTMLElement from 'hyperhtml-element' then I get raw es6 in my bundle. If I import HyperHTMLElement from 'hyperhtml-element/es5' then I get Uncaught TypeError: Super expression must either be null or a function

I'm using @babel/preset-env

I've been using hyperhtml-element in an Electron app for the last couple month and love it. But now that I'm trying to use it on the web I can't figure it out. I've been trying to make this work for almost a month now.

Any help you can provide will be greatly appreciated

WebReflection commented 6 years ago

answered in SO: https://stackoverflow.com/questions/52580223/bundling-hyperhtml-element-with-browserify-babelify-not-working/52587775#52587775