fix: use export in package.json to reference ESM
The module field of package.json has never been officially supported by Node.js (see Stackoverflow).
To correctly reference the ESM version, Node.js recommends using the export field in the package.json (refer to Node.js ESM documentation).
With this change, we also ensure compatibility with bun.
Thank you, here's hoping this gets merged quickly!
Hate to be the one doing the "me too" comment, much less to be the annoying one "@-ing people" but the project seems parked and this fix so easy, sorry @MeltingMosaic, @Xapphire13
Bun just launched T.T
Commenting for visibility. Please merge!
Please merge! :)
Please merge!
Please merge !
I fixed ESM thing in my fork: tsyringe-neo. Feel free to use