mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user