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

ESM packaging #516

Open
terrablue opened this issue Feb 8, 2024 · 0 comments
Open

ESM packaging #516

terrablue opened this issue Feb 8, 2024 · 0 comments

Comments

@terrablue
Copy link

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.

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