Commit Graph

2 Commits

Author SHA1 Message Date
Innei ba3e528e4b 🐛 fix(vite): preserve precompiled style composition order (#19162)
* 🐛 fix(user-panel): make the popover padding override order-independent

`classNames.content` maps to the base-ui viewport, whose padding is set with
`padding-block` / `padding-inline` longhands. The shorthand `padding: 0` only
won because dev-mode module order inserted it last; production chunking flips
that and the 12px padding comes back.

Claude-Session: https://claude.ai/code/session_0136deq4gr2Pbe1cEYJHi1v8

* 🐛 fix(vite): preserve precompiled style composition order
2026-09-05 15:38:16 +08:00
Innei 94d06945e1 ⚡️ perf(vite): precompile pure createStaticStyles at build time (#19066)
Run pure cssVar/responsive createStaticStyles callbacks through antd-style
at build time and ship the stylis output as pre-split rules. The runtime
helper only calls sheet.insert and exposes a lazy `&`-form getter on
cache.registered so cx merging and `${styles.x}` composition keep emotion
semantics. Covers src/packages and @lobehub/ui dist; impure callbacks stay
on the runtime path. Legacy vendor prefixes are dropped except the -webkit-
ones Safari still needs.

Claude-Session: https://claude.ai/code/session_01LWpHcuigdH4EcPsNEKP6He
2026-09-04 20:23:06 +08:00