Skip to content

Commit

Permalink
Update parser's call to parseComponent (vuejs#684)
Browse files Browse the repository at this point in the history
The pad option now accepts 'line' or 'space' as padding options.
Depends on vuejs/vue#5059
  • Loading branch information
sandersn authored and yyx990803 committed Mar 5, 2017
1 parent 925dd68 commit 1c4a8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1c4a8d5

Please sign in to comment.