facebook / stylex

StyleX is the styling system for ambitious user interfaces.
https://stylexjs.com
MIT License
8.22k stars 303 forks source link

fix: Keep units for 0 values #532

Closed nmn closed 2 months ago

nmn commented 2 months ago

Fixes #529

No longer remove units from 0 dimension values.

github-actions[bot] commented 2 months ago

compressed-size: runtime library

Size change: 0.00 kB Total size: 2.52 kB

View unchanged | Filename: gzip (minify) | kB size | kB change | % change | | :--- | :--- | :--- | :--- | | `./packages/stylex/lib/stylex.js` | **1.04** (3.22) | **0.00** (0.00) | **0.0%** (0.0%) | | `./packages/stylex/lib/StyleXSheet.js` | **1.48** (3.75) | **0.00** (0.00) | **0.0%** (0.0%) |
github-actions[bot] commented 2 months ago

compressed-size: e2e bundles

Size change: +4.19 kB Total size: 1132.93 kB

Filename: gzip (minify) kB size kB change % change
./apps/rollup-example/.build/bundle.js 1006.63 (10188.26) +1.31 (+2.91) +0.1% (0.0%) 🔴
./apps/rollup-example/.build/stylex.css 126.30 (796.17) +2.88 (+21.83) +2.3% (+2.8%) 🔴