Skip to content

Commit

Permalink
fix: fix wrong outputSourceRange usage (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasCag authored and yyx990803 committed Jan 27, 2019
1 parent c6ee310 commit 2d96215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loaders/templateLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = function (source) {
// errors
if (compiled.errors && compiled.errors.length) {
// 2.6 compiler outputs errors as objects with range
if (compiler.generateCodeFrame && finalOptions.outputSourceRange) {
if (compiler.generateCodeFrame && finalOptions.compilerOptions.outputSourceRange) {
// TODO account for line offset in case template isn't placed at top
// of the file
loaderContext.emitError(
Expand Down

0 comments on commit 2d96215

Please sign in to comment.