-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Rollup Version
4.46.1
Operating System (or Browser)
all
Node Version (if applicable)
No response
Link To Reproduction
Expected Behaviour
Expected behavior is here,
the unitlessKeys
object shouldn't be emptied (see the name in unitless
check), as is the case in 4.45.3 and earlier.
styled-components
uses this to determine wether to add px
units to CSS like flex: 1
.
Actual Behaviour
It removes all properties and this breaks projects that use styled-components
with vite
. Projects that use rollup
to build npm libraries are unaffected, since styled-components
is typically a peer dependency and thus marked as external
in those cases.
bjoerge, EoinFalconer, Yama-Tomo and gu-stav