type-is icon indicating copy to clipboard operation
type-is copied to clipboard

ESM/browser support

Open felixfbecker opened this issue 4 years ago • 2 comments

I'd love to use this package in the browser, but currently it uses Node-style CommonJS. Would it be possible to support ESM through package.json fields?

felixfbecker avatar Nov 03 '20 11:11 felixfbecker

I am fine to add more platforms than Node.js if that does not end up forking the code too much. If someone would like to put a pull request together that adds said support and includes the appropriate tests that back up whatever the platform is in the CI. It sounds like you said web browser, so we'd want to make sure some kind of web browser test matrix is added to the CI with it.

dougwilson avatar Nov 03 '20 11:11 dougwilson