pull/10490/head
Rich Harris 3 years ago
parent 2f679bc093
commit ec0dee7710

@ -28,10 +28,7 @@ const whitelist_attribute_selector = new Map([
* @param {import('#compiler').RegularElement | import('#compiler').SvelteElement} element * @param {import('#compiler').RegularElement | import('#compiler').SvelteElement} element
*/ */
export function prune(stylesheet, element) { export function prune(stylesheet, element) {
/** @type {State} */ walk(stylesheet, { stylesheet, element }, visitors);
const state = { stylesheet, element };
walk(stylesheet, state, visitors);
} }
/** @type {import('zimmerframe').Visitors<import('#compiler').Css.Node, State>} */ /** @type {import('zimmerframe').Visitors<import('#compiler').Css.Node, State>} */

Loading…
Cancel
Save