Skip to content

Commit 968045f

Browse files
committed
nevermind
1 parent 4d920c6 commit 968045f

File tree

1 file changed

+3
-5
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors/shared

1 file changed

+3
-5
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export function process_children(nodes, initial, is_element, { visit, state }) {
6868
return;
6969
}
7070

71+
state.template.push(' ');
72+
7173
const { has_state, value } = build_template_chunk(sequence, visit, state);
7274

7375
// if this is a standalone `{expression}`, make sure we handle the case where
@@ -79,12 +81,8 @@ export function process_children(nodes, initial, is_element, { visit, state }) {
7981

8082
if (has_state && !within_bound_contenteditable) {
8183
state.update.push(update);
82-
state.template.push(' ');
83-
} else if (value.type !== 'Literal') {
84+
} else {
8485
state.init.push(b.stmt(b.assignment('=', b.member(id, 'nodeValue'), value)));
85-
state.template.push(' ');
86-
} else if (value.type === 'Literal') {
87-
state.template.push((value.value ?? '') + '');
8886
}
8987
}
9088

0 commit comments

Comments
 (0)