Please, export "module" entry point in the package.json as ES Module Syntax (ESM).
More info about it here: https://www.pikapkg.com/about/
How to reproduce the issue:
Just download the package or see it at unpkg:
https://unpkg.com/[email protected]/src/index.js?module.
@JoviDeCroock If you have not seen it, I suppose it may be of your interest 🙂
Any news on this? Thanks in advance!
I have done a PR, there I got asked to convert this repository to TypeScript first but since no maintainer has been active on the repository.
Ouch! 😢
Thanks anyway for your work!
Well, on the bright side it is not that you would be able to tree shake anything anyway so using the CJS is functionally equivalent.
I'm really thinking about rewrite this to typescript + emitting .ts files for better developer experience.
There is no simple tool ATM, so I will try my best to emit input and output types for native typescript, so VSCode and other languageservices can benefit from.. Ask me after week please if you are interested
@langpavel already doing this but waiting for merge, you can always help out by making PR's to the /typescript branch.
@JoviDeCroock I must break for some days, but here is what I do last week:
require(...) → require(...).defaulthttps://gist.github.com/langpavel/ffd6ecb5ba655b7b4bff3ebdca0942f0
@langpavel Do it on the official repo
Is there any hope for this?