Skip to content

Commit

Permalink
Update parser's call to parseComponent
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 committed Mar 3, 2017
1 parent 19b9d07 commit e926d1e
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 e926d1e

Please sign in to comment.