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
Metadata
Metadata
Assignees
Labels
No labels