mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user