Skip to content

Commit 2d96215

Browse files
AndreasCagyyx990803
authored andcommitted
fix: fix wrong outputSourceRange usage (#1482)
1 parent c6ee310 commit 2d96215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/loaders/templateLoader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = function (source) {
5555
// errors
5656
if (compiled.errors && compiled.errors.length) {
5757
// 2.6 compiler outputs errors as objects with range
58-
if (compiler.generateCodeFrame && finalOptions.outputSourceRange) {
58+
if (compiler.generateCodeFrame && finalOptions.compilerOptions.outputSourceRange) {
5959
// TODO account for line offset in case template isn't placed at top
6060
// of the file
6161
loaderContext.emitError(

0 commit comments

Comments
 (0)