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

Offer as an ES6 import? #2

Open
Macavirus opened this issue Feb 6, 2019 · 1 comment
Open

Offer as an ES6 import? #2

Macavirus opened this issue Feb 6, 2019 · 1 comment

Comments

@Macavirus
Copy link

It might be good to package this as a separate ES6 module to import. I'm not totally sure how to go from the IIFE that bridge.js currently is to a module export.

To be clear, this would help my use case, though I expect that the current form is most useful to a general audience who will drop this in a script tag instead.

@Aerilius
Copy link
Owner

Aerilius commented Feb 6, 2019

It's a tradeoff between ease of use for beginners and comfort for experienced developers.

You have probably seen, the original code was hand-written (ES4 or ES5 I think) for widest compatibility and without need for compiler/transpiler tools. For easier distribution I have here merged multiple files into one.

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