webdfu icon indicating copy to clipboard operation
webdfu copied to clipboard

Consider making webdfu an ES6 module

Open Ecco opened this issue 6 years ago • 2 comments

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

Ecco avatar Oct 24 '17 20:10 Ecco

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 avatar Oct 25 '17 02:10 devanlai

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.

M4xi1m3 avatar Mar 16 '20 11:03 M4xi1m3