babel / babelify

Browserify transform for Babel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bundling hyperhtml-element with browserify/babelify not working

justintaddei opened this issue · comments

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