mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
use addBlock instead of addLine
This commit is contained in:
parent
d3451a530f
commit
6ff60db212
@ -307,7 +307,7 @@ export default class Component extends Node {
|
||||
);
|
||||
}
|
||||
|
||||
block.builders.mount.addLine(deindent`
|
||||
block.builders.mount.addBlock(deindent`
|
||||
if (${name}) {
|
||||
${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'});
|
||||
${ref && `#component.refs.${ref.name} = ${name};`}
|
||||
|
Loading…
Reference in New Issue
Block a user