Current module path

Maël Nison nison.mael at gmail.com
Thu Jun 5 13:28:04 PDT 2014


Hi,

Will ES6 have a way to know what is the current module path from inside a
module ?

Such a thing could be useful to locate relative resources, just like node's
__dirname global.

-- 
Maël Nison (arcanis <https://twitter.com/arcanis>)
Frontend Developer @ Sketchfab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140605/e3e05e97/attachment.html>


More information about the es-discuss mailing list