From b3b98b3614b7fb94678514b9fb000aa1095b68f9 Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Wed, 28 Aug 2019 22:57:21 -0700 Subject: [PATCH] Fixes #350, makes source maps line up with the correct lines when viewed in DevTools --- packages/vue-component/plugin/vue-compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-component/plugin/vue-compiler.js b/packages/vue-component/plugin/vue-compiler.js index 003b579..3afdde2 100644 --- a/packages/vue-component/plugin/vue-compiler.js +++ b/packages/vue-component/plugin/vue-compiler.js @@ -536,7 +536,7 @@ function compileOneFileWithContents (inputFile, contents, parts, babelOptions) { try { const cache = Cache.getCache(inputFile) const compiler = loadPackage(inputFile, 'vue-template-compiler', loadDefaultTemplateCompiler) - const sfcDescriptor = compiler.parseComponent(contents, { pad: 'line' }) + const sfcDescriptor = compiler.parseComponent(contents) return compileTags(inputFile, sfcDescriptor, parts, babelOptions, cache.dependencyManager) } catch (e) {