Skip to content

Commit df216ee

Browse files
committed
feat: post rebase cleanup
1 parent 68320d3 commit df216ee

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
@@ -107,7 +107,7 @@ export default class Component {
107107
slots: Map<string, Slot> = new Map();
108108
slot_outlets: Set<string> = new Set();
109109

110-
tags: Tag[] = []
110+
tags: Tag[] = [];
111111

112112
constructor(
113113
ast: Ast,

src/compiler/compile/nodes/Element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ export default class Element extends Node {
379379
this.handlers.length > 0 ||
380380
this.styles.length > 0 ||
381381
this.name === 'option' ||
382+
this.is_dynamic_element ||
382383
this.tag_expr.dynamic_dependencies().length ||
383384
component.compile_options.dev
384385
) {

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

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

161161
if (options.hydratable) {
162-
if (options.head_id) {
163-
renderer.add_string(` data-svelte="${options.head_id}"`);
164-
} else if (node.children.length === 1 && node.children[0].type === 'RawMustacheTag') {
162+
if (node.children.length === 1 && node.children[0].type === 'RawMustacheTag') {
165163
renderer.add_string(` data-svelte="${hash(JSON.stringify(node.children[0].expression.node))}"`);
166164
options = { ...options, optimised_html_hydration: true };
167165
} else if (node.can_optimise_to_html_string && !options.has_added_svelte_hash) {

0 commit comments

Comments
 (0)