Skip to content

Commit 1a045c8

Browse files
committed
feat: post rebase cleanup
1 parent be99c8a commit 1a045c8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/compiler/compile/Component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default class Component {
112112
slots: Map<string, Slot> = new Map();
113113
slot_outlets: Set<string> = new Set();
114114

115-
tags: Tag[] = []
115+
tags: Tag[] = [];
116116

117117
constructor(
118118
ast: Ast,

src/compiler/compile/nodes/Element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ export default class Element extends Node {
385385
this.handlers.length > 0 ||
386386
this.styles.length > 0 ||
387387
this.name === 'option' ||
388+
this.is_dynamic_element ||
388389
this.tag_expr.dynamic_dependencies().length ||
389390
this.is_dynamic_element ||
390391
component.compile_options.dev

src/compiler/compile/render_ssr/handlers/Element.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ export default function (node: Element, renderer: Renderer, options: RenderOptio
162162
});
163163

164164
if (options.hydratable) {
165-
if (options.head_id) {
166-
renderer.add_string(` data-svelte="${options.head_id}"`);
167-
} else if (node.children.length === 1 && node.children[0].type === 'RawMustacheTag') {
165+
if (node.children.length === 1 && node.children[0].type === 'RawMustacheTag') {
168166
renderer.add_string(` data-svelte="${hash(JSON.stringify(node.children[0].expression.node))}"`);
169167
options = { ...options, optimised_html_hydration: true };
170168
} else if (node.can_optimise_to_html_string && !options.has_added_svelte_hash) {

0 commit comments

Comments
 (0)