tsyringe icon indicating copy to clipboard operation
tsyringe copied to clipboard

fix: use export in package.json to reference ESM

Open woehrl01 opened this issue 2 years ago • 7 comments

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.

woehrl01 avatar Sep 11 '23 09:09 woehrl01

Thank you, here's hoping this gets merged quickly!

TreeOfLearning avatar Sep 11 '23 11:09 TreeOfLearning

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

samuelhnrq avatar Sep 14 '23 08:09 samuelhnrq

Commenting for visibility. Please merge!

jonnysamps avatar Oct 26 '23 18:10 jonnysamps

Please merge! :)

dkerr-dev avatar Nov 12 '23 03:11 dkerr-dev

Please merge!

Murzbul avatar Nov 16 '23 16:11 Murzbul

Please merge !

JulienLeal avatar Jan 10 '24 13:01 JulienLeal

I fixed ESM thing in my fork: tsyringe-neo. Feel free to use

risenxxx avatar Jul 19 '24 16:07 risenxxx