attr-accept icon indicating copy to clipboard operation
attr-accept copied to clipboard

ESM build?

Open edemaine opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When including attr-accept in an ESM library, Vite fails to properly convert from CJS to ESM. See https://github.com/soorria/solid-dropzone/issues/3 for a real-world example.

Describe the solution you'd like Offer an ESM build parallel to the current CJS options. I believe a larger Webpack configuration can do this relatively easily.

Describe alternatives you've considered Forking just to produce our own ESM build.

edemaine avatar Jul 21 '23 13:07 edemaine

Feel free to submit a PR. I have no idea how to do this.

okonet avatar Jul 21 '23 16:07 okonet