when using babel/register always use the cwd - fixes #1689
This commit is contained in:
parent
0376ec8ff0
commit
a102692103
@ -38,7 +38,7 @@ var only;
|
||||
var oldHandlers = {};
|
||||
var maps = {};
|
||||
|
||||
var cwd = require.main ? require.main.filename : process.cwd();
|
||||
var cwd = process.cwd()
|
||||
|
||||
var getRelativePath = function (filename){
|
||||
return path.relative(cwd, filename);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user