WebReflection / hyperHTML-Element

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

question: should hyperHTML support all build formats #32

Closed douglasduteil closed 6 years ago

douglasduteil commented 6 years ago

\following #31

Hi @WebReflection

Actually, I have a more global question/comment to make as I'm trying to get HyperHTMLElement to play around with Webpack and IE11.

I proposed an UMD build (#31) because I actually need an ESM + ES5 (=ESM5) build so Webpack and IE are happy...

What do you think about the multiplication of build formats from ESM2015, ESM5, FESM5, FESM2015, CJS to UMD ?

Do you think as a library you should support none, most or all of them ?

\personaly I kind of feel like there is no end to the possible combinations so it might be better to look for a way to compile your ES6 code to whatever target I need. What you think ?

Douglas.

WebReflection commented 6 years ago

I think I never had issues with const HyperHTMLElement = require("hyperhtml-element/cjs") or import HyperHTMLElement from "hyperhtml-element/esm", if Webpack is your issue.