refactor(compiler-sfc): make more explicit regarding template pad behavior
This commit is contained in:
parent
db50009353
commit
5bf72517ce
@ -117,7 +117,7 @@ export function parse(
|
||||
descriptor.template = createBlock(
|
||||
node,
|
||||
source,
|
||||
pad
|
||||
false
|
||||
) as SFCTemplateBlock
|
||||
} else {
|
||||
warnDuplicateBlock(source, filename, node)
|
||||
@ -207,7 +207,7 @@ function createBlock(
|
||||
loc,
|
||||
attrs
|
||||
}
|
||||
if (node.tag !== 'template' && pad) {
|
||||
if (pad) {
|
||||
block.content = padContent(source, block, pad) + block.content
|
||||
}
|
||||
node.props.forEach(p => {
|
||||
|
Loading…
Reference in New Issue
Block a user