When using ESM in Node.js you don't have `__dirname` anymore and you have to do a little dance to get something equivalent. It can be a bit tedious, but I recently found out from @delvedor that there's an amazing package called `desm` that will make things easier! πŸ‘Œ #nodejs

9:22 AM Β· Dec 10, 2020

2
7
16
PS: Mandatory thank you to @matteocollina for another ΓΌber-useful library!
1
0
4