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

Is it possible to use choojs with es import syntax? #702

Closed
bennlich opened this issue Aug 9, 2019 · 2 comments
Closed

Is it possible to use choojs with es import syntax? #702

bennlich opened this issue Aug 9, 2019 · 2 comments

Comments

@bennlich
Copy link

bennlich commented Aug 9, 2019

ES modules have come a long way, and MDN says import is now supported by most browsers. I'd love to import {choo} from 'choo.js'. Any recommendations? Does Bankai handle this?

😺

@bennlich bennlich changed the title Is it possible to use choojs with es6 import syntax? Is it possible to use choojs with es import syntax? Aug 9, 2019
@goto-bus-stop
Copy link
Member

import choo from 'choo'

this should work in bankai, because it includes the Babel ES → CJS transform. choo doesn't ship an es modules build yet though

@bennlich
Copy link
Author

Thanks! I'll give this a shot.

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

2 participants