Is there a possibility of this project supporting ES Modules?
Not for a while, sorry. Perhaps in version 6.
EDIT: Let me expand on that - ESM isn't well supported yet, both by tooling and by teams. debug is one of the most depended upon modules on npm, and since version 5 is meant to be a compatibility-oriented major release, it's kind of important to keep it CJS for now so as to not alienate other users.
Oh.
Could someone possibly could make a fork with ESM support I could use?
Or another branch labeled ESM-Support?
@Justsnoopy30 Please don't double- or triple-post.
Can you explain why ESM support is an absolute requirement for you?
My entire project uses ESM. I do not use a bundler, so there is basically no way to import this on the browser as it doesn't provide an ESM export.
I'm not sure how to help, unfortunately. Someone can fork, but I don't recommend it. Industry standard at the moment is to use a bundler.
Okay. I ended up getting what I wanted through a website which generates ESM compliant versions of npm packages, which I then downloaded and now I can import it as an ES Module!
It is a requirement for projects like Angular where the compiler uses ES Syntax and libs that are ES invalid because of one dependency that is not ES. Lodash did it greatly by providing an extra package called "lodash-es".
Ref: https://github.com/socketio/socket.io-client/issues/1375