From 327fabb663e213ee46db61a2a2ded561e03ec923 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Mon, 30 Oct 2017 12:15:25 +0800 Subject: [PATCH] fix: originalPositionFor return null when using babel-loader --- lib/core/renderer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/renderer.js b/lib/core/renderer.js index f3be97e5bb..821512c7cd 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -413,7 +413,8 @@ export default class Renderer extends Tapable { // Try to find original position const { line, column, name, source } = smc.originalPositionFor({ line: frame.getLineNumber() || 0, - column: frame.getColumnNumber() || 0 + column: frame.getColumnNumber() || 0, + bias: SourceMapConsumer.LEAST_UPPER_BOUND }) if (line) { frame.lineNumber = line