-
Couldn't load subscription status.
- Fork 16
Closed
Description
One of the most annoying things in the ESM implementation in Node.js is the lack of __filename and __dirname to work with paths from ESM files.
I would recommend we specify import.meta.dirname and import.meta.filename as optional shared metadata, returning the local paths in the filesystem as strings (and not file:// URLs).
For more context: nodejs/node#48740
benjamingr, ljharb, anonrig, pi0, bakkot and 8 morejimmywarting
Metadata
Metadata
Assignees
Labels
No labels