Closed
Description
Follow on to #5368. When in EXPORT_ES6 mode import.meta.url
should be used. In browsers document.currentScript
will probably still work, but __dirname
will not work in Node. import.meta.url
is supported in both, and it's cleaner and safer.