Revert "Correct source map paths for babel-register." (#3599)

This commit is contained in:
Henry Zhu 2016-07-26 18:07:29 -04:00 committed by GitHub
parent 83522c9cb5
commit 7ee2381955

View File

@ -48,11 +48,8 @@ function compile(filename) {
let result;
// merge in base options and resolve all the plugins and presets relative to this file
let relativePath = getRelativePath(filename);
let opts = new OptionManager().init(extend(deepClone(transformOpts), {
filename,
sourceMapTarget: relativePath,
sourceFileName: relativePath,
filename
}));
let cacheKey = `${JSON.stringify(opts)}:${babel.version}`;