From d2ce0a79aee0c167c6133d1636bab73254a54e15 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 25 Nov 2024 13:49:31 -0500 Subject: [PATCH] remove stylesheet property from state (#14429) --- .../svelte/src/compiler/phases/2-analyze/css/css-prune.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js b/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js index 899ea7e894..61f3fc822f 100644 --- a/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js +++ b/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js @@ -7,7 +7,6 @@ import { get_attribute_chunks, is_text_attribute } from '../../../utils/ast.js'; /** * @typedef {{ - * stylesheet: Compiler.Css.StyleSheet; * element: Compiler.AST.RegularElement | Compiler.AST.SvelteElement; * from_render_tag: boolean; * }} State @@ -61,9 +60,9 @@ export function prune(stylesheet, element) { const parent = get_element_parent(element); if (!parent) return; - walk(stylesheet, { stylesheet, element: parent, from_render_tag: true }, visitors); + walk(stylesheet, { element: parent, from_render_tag: true }, visitors); } else { - walk(stylesheet, { stylesheet, element, from_render_tag: false }, visitors); + walk(stylesheet, { element, from_render_tag: false }, visitors); } }