Skip to content

Commit f380b34

Browse files
committed
fix: make can_hoist undefined by default
1 parent d18628a commit f380b34

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/1-parse/state/tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function open(parser) {
391391
parameters: function_expression.params,
392392
body: create_fragment(),
393393
metadata: {
394-
can_hoist: false,
394+
can_hoist: undefined,
395395
sites: new Set()
396396
}
397397
});

packages/svelte/src/compiler/types/template.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export namespace AST {
463463
body: Fragment;
464464
/** @internal */
465465
metadata: {
466-
can_hoist: boolean;
466+
can_hoist?: boolean;
467467
/** The set of components/render tags that could render this snippet,
468468
* used for CSS pruning */
469469
sites: Set<Component | SvelteComponent | SvelteSelf | RenderTag>;

0 commit comments

Comments
 (0)