From d9b895e6ec02dc46cf40a9d9d798dbdd77a2fc2a Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Tue, 27 Oct 2015 18:54:01 -0400 Subject: [PATCH] Use default source path for BabelCompiler errors. The inputFile.getPathInPackage() path is not very useful for package files, since it does not contain the name of the package. This change makes BabelCompiler behave more like the CoffeeCompiler, which also omits the explicit sourcePath option to the inputFile.error method. Fixes #5551. --- packages/babel-compiler/babel-compiler.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index 41b2b2838d..2969ea8589 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -60,7 +60,6 @@ BCp.processFilesForTarget = function (inputFiles) { if (e.loc) { inputFile.error({ message: e.message, - sourcePath: inputFilePath, line: e.loc.line, column: e.loc.column, });