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

Consider making webdfu an ES6 module #1

Open
Ecco opened this issue Oct 24, 2017 · 2 comments
Open

Consider making webdfu an ES6 module #1

Ecco opened this issue Oct 24, 2017 · 2 comments
Assignees

Comments

@Ecco
Copy link

Ecco commented Oct 24, 2017

Writing a library as an ES6 module is probably the most future-proof way. And it makes it a lot easier to use in Webpack.

One could argue that ES6 modules aren't widely supported, but they are available in Chrome 61 which is, at the moment, the only browser supporting WebUSB :)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export

@devanlai
Copy link
Owner

This seems like a reasonable suggestion. It might be a while before I find the time to clean everything up and reorganize it as an ES6 module, though.

@devanlai devanlai self-assigned this Oct 25, 2017
@M4xi1m3
Copy link

M4xi1m3 commented Mar 16, 2020

I already did it, when writing my numworks.js lib. Here is my repo : https://github.com/M4xi1m3/webdfu. I only rewrote dfu and dfuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants