react-dropzone / attr-accept

JavaScript implementation of the "accept" attribute for HTML5 input element
MIT License
110 stars 24 forks source link

support require('attr-accept'); #39

Closed joshxyzhimself closed 4 years ago

joshxyzhimself commented 4 years ago

not big issue but could it support

const attrAccept = require('attr-accept');

instead of

const attrAccept = require('attr-accept').default;
rolandjitsu commented 4 years ago

I think this is more of a userland issue. It depends on how you use the lib (native module import, commonjs style, etc).