when using babel/register always use the cwd - fixes #1689

This commit is contained in:
Sebastian McKenzie 2015-06-05 11:54:52 +01:00
parent 0376ec8ff0
commit a102692103

View File

@ -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);