webdfu
webdfu copied to clipboard
Consider making webdfu an ES6 module
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
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.
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.