fix: make `can_hoist` undefined by default

dont-hoist-snippet-binding-group
paoloricciuti 8 months ago
parent d18628aa2d
commit f380b34f4e

@ -391,7 +391,7 @@ function open(parser) {
parameters: function_expression.params,
body: create_fragment(),
metadata: {
can_hoist: false,
can_hoist: undefined,
sites: new Set()
}
});

@ -463,7 +463,7 @@ export namespace AST {
body: Fragment;
/** @internal */
metadata: {
can_hoist: boolean;
can_hoist?: boolean;
/** The set of components/render tags that could render this snippet,
* used for CSS pruning */
sites: Set<Component | SvelteComponent | SvelteSelf | RenderTag>;

Loading…
Cancel
Save