Skip to content

Commit d2ce0a7

Browse files
authored
remove stylesheet property from state (#14429)
1 parent 2b5c0e7 commit d2ce0a7

File tree

1 file changed

+2
-3
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/css

1 file changed

+2
-3
lines changed

packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { get_attribute_chunks, is_text_attribute } from '../../../utils/ast.js';
77

88
/**
99
* @typedef {{
10-
* stylesheet: Compiler.Css.StyleSheet;
1110
* element: Compiler.AST.RegularElement | Compiler.AST.SvelteElement;
1211
* from_render_tag: boolean;
1312
* }} State
@@ -61,9 +60,9 @@ export function prune(stylesheet, element) {
6160
const parent = get_element_parent(element);
6261
if (!parent) return;
6362

64-
walk(stylesheet, { stylesheet, element: parent, from_render_tag: true }, visitors);
63+
walk(stylesheet, { element: parent, from_render_tag: true }, visitors);
6564
} else {
66-
walk(stylesheet, { stylesheet, element, from_render_tag: false }, visitors);
65+
walk(stylesheet, { element, from_render_tag: false }, visitors);
6766
}
6867
}
6968

0 commit comments

Comments
 (0)