Skip to content

Commit 173dbd7

Browse files
committed
fix: revert a couple more changes
1 parent 34abcb2 commit 173dbd7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import { empty_comment, build_attribute_value } from './utils.js';
55
import * as b from '../../../../../utils/builders.js';
66
import { is_element_node } from '../../../../nodes.js';
7-
import { is_hydratable } from '../../../../../../internal/server/hydration.js';
87

98
/**
109
* @param {AST.Component | AST.SvelteComponent | AST.SvelteSelf} node
@@ -269,14 +268,13 @@ export function build_inline_component(node, expression, context) {
269268
)
270269
);
271270
} else {
272-
const hydratable = is_hydratable();
273-
if (dynamic && hydratable) {
271+
if (dynamic) {
274272
context.state.template.push(empty_comment);
275273
}
276274

277275
context.state.template.push(statement);
278276

279-
if (!context.state.skip_hydration_boundaries && hydratable) {
277+
if (!context.state.skip_hydration_boundaries) {
280278
context.state.template.push(empty_comment);
281279
}
282280
}

packages/svelte/src/internal/server/hydration.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ export function empty() {
3232
return EMPTY_COMMENT;
3333
}
3434

35-
export function is_hydratable() {
36-
return hydratable;
37-
}
38-
3935
/**
4036
* @param {boolean} new_hydratable
4137
*/

0 commit comments

Comments
 (0)