diff --git a/lib/loaders/templateLoader.js b/lib/loaders/templateLoader.js index 19c03abe9..c3af85ab1 100644 --- a/lib/loaders/templateLoader.js +++ b/lib/loaders/templateLoader.js @@ -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(