zenorocha / clipboard.js

:scissors: Modern copy to clipboard. No Flash. Just 3kb gzipped :clipboard:
https://clipboardjs.com
MIT License
33.98k stars 3.98k forks source link

Output ESM module from build #814

Closed vilbergs closed 2 years ago

vilbergs commented 2 years ago

💥 Proposal

Is your feature request related to a problem? Please describe Hello! Thank you for making this library.

I am currently in the process of upgrading our build system from Webpack to Vite. Since Vite only supports ESM modules, it would be incredibly helpful if we could add an ESM artefact to the build.

Describe the solution you'd like There is an ESM module in the dist directory, that can be used consumed by modern bundlers (such as Vite).

Describe alternatives you've considered I'm not sure what other alternatives could be right now, but if there is I'd be happy to look into it.

Are you able to assist to bring the feature to reality? Yes.

Additional context

Have you read the Contributing Guidelines on issues?

Yes

vilbergs commented 2 years ago

Closing this. I had missed that there was an npm module available