reflex-components-lucide Changelog
v1.0.2 (2026-06-10)
Bug Fixes
rx.iconwith a static name now emits a deep per-icon import (import LucideWifiOff from "lucide-react/dist/esm/icons/wifi-off.mjs") instead of a named import from thelucide-reactbarrel. The barrel import was harmless on its own, but once an app's module graph also containedlucide-react/dynamic.mjs(pulled in by dynamicVar-tagged icons, and by the connection overlay mounted on every page), esbuild's dev dep-optimizer rewrote the barrel to statically import every icon chunk — making each page load fetch the entire ~1700-icon library. Deep imports load only the icons actually used. The dynamicVarpath still resolves throughlucide-react/dynamic.mjsand is unchanged. (#6628)