Skip to content

Commit f195b21

Browse files
sandersnyyx990803
authored andcommitted
Update parser's call to parseComponent (#684)
The pad option now accepts 'line' or 'space' as padding options. Depends on vuejs/vue#5059
1 parent 7caa9dd commit f195b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function (content, filename, needMap) {
1212
var filenameWithHash = filename + '?' + cacheKey
1313
var output = cache.get(cacheKey)
1414
if (output) return output
15-
output = compiler.parseComponent(content, { pad: true })
15+
output = compiler.parseComponent(content, { pad: 'line' })
1616
if (needMap) {
1717
if (output.script && !output.script.src) {
1818
output.script.map = generateSourceMap(

0 commit comments

Comments
 (0)