Skip to content

Commit

Permalink
feat(sfc): remove disableDeindent in favor of vuejs#7215
Browse files Browse the repository at this point in the history
  • Loading branch information
gzzhanghao committed Dec 13, 2017
1 parent facacc1 commit e493d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sfc/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function parseComponent (
currentBlock.end = start
currentBlock.blockEnd = end
let text = content.slice(currentBlock.start, currentBlock.end)
if (!(process.env.NODE_ENV !== 'production' && options.outputSourceRange) && !options.disableDeindent) {
if (process.env.NODE_ENV === 'production' || !options.outputSourceRange) {
text = deindent(text)
}
// pad content so that linters and pre-processors can output correct
Expand Down

0 comments on commit e493d79

Please sign in to comment.