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

Support for JavaScript modules #658

Open
aaronshaf opened this issue May 2, 2018 · 6 comments
Open

Support for JavaScript modules #658

aaronshaf opened this issue May 2, 2018 · 6 comments

Comments

@aaronshaf
Copy link

It'd be rad to be able to use choo in a no-build environment. Thanks!

@bcomnes
Copy link
Collaborator

bcomnes commented May 2, 2018

Which environments are you thinking of?

@aaronshaf
Copy link
Author

Beaker Browser apps (offline, has Chrome's support for ES6 modules).

@bcomnes
Copy link
Collaborator

bcomnes commented May 2, 2018

Choo works in no-build electron now. It would be great if we could get no-build beaker support as well. Chrome as well, but I haven't seen any great examples of that, know of any? I'm guessing this will be trivial once Node.js (and by consequence, browserify) gets better es-modules support.

@goto-bus-stop
Copy link
Member

we could publish an ES module bundle by browserifying choo/index.js and adding export default $BUNDLE. otherwise we'd have to add ES module support to all dependencies too.

@bcomnes
Copy link
Collaborator

bcomnes commented May 11, 2018

Thats an unfortunate catch 22

@perguth
Copy link
Contributor

perguth commented Feb 19, 2024

Yes, module support would be super cool :)

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

4 participants