choojs / choo

:steam_locomotive::train: - sturdy 4kb frontend framework
https://choo.io/
MIT License
6.78k stars 595 forks source link

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

Closed bennlich closed 5 years ago

bennlich commented 5 years ago

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?

:smiley_cat:

goto-bus-stop commented 5 years ago
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 commented 5 years ago

Thanks! I'll give this a shot.