mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
fix: originalPositionFor return null when using babel-loader
This commit is contained in:
parent
7d2ea44c83
commit
327fabb663
@ -413,7 +413,8 @@ export default class Renderer extends Tapable {
|
|||||||
// Try to find original position
|
// Try to find original position
|
||||||
const { line, column, name, source } = smc.originalPositionFor({
|
const { line, column, name, source } = smc.originalPositionFor({
|
||||||
line: frame.getLineNumber() || 0,
|
line: frame.getLineNumber() || 0,
|
||||||
column: frame.getColumnNumber() || 0
|
column: frame.getColumnNumber() || 0,
|
||||||
|
bias: SourceMapConsumer.LEAST_UPPER_BOUND
|
||||||
})
|
})
|
||||||
if (line) {
|
if (line) {
|
||||||
frame.lineNumber = line
|
frame.lineNumber = line
|
||||||
|
Loading…
Reference in New Issue
Block a user