Is there any way to receive current file path, like in requirejs?
define([\'module\'], function (module) { console.log(module.uri) });
To get the filename an the dir name I added this to the web pack config
node : { __filename: true, __dirname: true, },
setting the context to __dirname messed up my web pack config since I have my webpackconfig not placed in root but the paths are setup that way