Skip to content

Commit e493d79

Browse files
committed
feat(sfc): remove disableDeindent in favor of #7215
1 parent facacc1 commit e493d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sfc/parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function parseComponent (
9999
currentBlock.end = start
100100
currentBlock.blockEnd = end
101101
let text = content.slice(currentBlock.start, currentBlock.end)
102-
if (!(process.env.NODE_ENV !== 'production' && options.outputSourceRange) && !options.disableDeindent) {
102+
if (process.env.NODE_ENV === 'production' || !options.outputSourceRange) {
103103
text = deindent(text)
104104
}
105105
// pad content so that linters and pre-processors can output correct

0 commit comments

Comments
 (0)