_hyperscript icon indicating copy to clipboard operation
_hyperscript copied to clipboard

ESM packaging

Open terrablue opened this issue 1 year ago • 0 comments

Hi, would it be possible to offer ESM-friendly packaging for frameworks wishing to support _hyperscript?

The goal is to be able to pass the build system something like export { default } from "hyperscript.org";

Or with advanced features,

export { default, workers, socket, eventsource } from "hyperscript.org";

such that the build system can bundle it in into one file, and hyperscript's side-effecting the DOM can still work.

It would typically involve using the exports field in package.json.

terrablue avatar Feb 08 '24 12:02 terrablue