From cdc53caea011b12cab86d824572776c711707a51 Mon Sep 17 00:00:00 2001 From: carlosabadia Date: Tue, 14 Apr 2026 17:59:16 -1000 Subject: [PATCH] fix treeshakable hugeicons --- reflex_ui/components/icons/hugeicon.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reflex_ui/components/icons/hugeicon.py b/reflex_ui/components/icons/hugeicon.py index 590f5d2..92aeba7 100644 --- a/reflex_ui/components/icons/hugeicon.py +++ b/reflex_ui/components/icons/hugeicon.py @@ -7,7 +7,7 @@ from reflex_ui.components.component import CoreComponent REACT_LIBRARY = "@hugeicons/react@1.1.6" -CORE_ICONS_LIBRARY = "@hugeicons/core-free-icons@4.0.0" +CORE_ICONS_LIBRARY = "@hugeicons/core-free-icons@4.1.1" class HugeIcon(CoreComponent): @@ -68,7 +68,13 @@ def create(cls, *children, **props) -> Component: props[prop] = Var( icon_name, _var_data=VarData( - imports={CORE_ICONS_LIBRARY: ImportVar(tag=icon_name)} + imports={ + CORE_ICONS_LIBRARY: ImportVar( + tag=icon_name, + is_default=True, + package_path=f"/{icon_name}", + ) + } ), ) stroke_width = props.pop("stroke_width", 2)