From e926d1e1b45803fa71362f219f37baa454857b36 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Fri, 3 Mar 2017 10:11:58 -0800 Subject: [PATCH] Update parser's call to parseComponent The pad option now accepts 'line' or 'space' as padding options. Depends on vuejs/vue#5059 --- lib/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parser.js b/lib/parser.js index d65b14fe4..66439909f 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -12,7 +12,7 @@ module.exports = function (content, filename, needMap) { var filenameWithHash = filename + '?' + cacheKey var output = cache.get(cacheKey) if (output) return output - output = compiler.parseComponent(content, { pad: true }) + output = compiler.parseComponent(content, { pad: 'line' }) if (needMap) { if (output.script && !output.script.src) { output.script.map = generateSourceMap(