facebook / stylex

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

fix: convert esm-resolve paths to absolute paths #763

Closed nmn closed 3 weeks ago

nmn commented 3 weeks ago

Small fix to make esmResolve work reliably when resolving themes across packages in a mono-repo.

github-actions[bot] commented 3 weeks ago

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

@stylexjs/scripts@0.9.0 size:compare ./size-compare.js /tmp/tmp.rwsbHRFSxJ /tmp/tmp.j0sTEZyPDG

Results Base Patch Ratio
stylex/lib/stylex.js
· compressed 729 729 1.00
· minified 2,541 2,541 1.00
stylex/lib/StyleXSheet.js
· compressed 1,266 1,266 1.00
· minified 3,776 3,776 1.00
rollup-example/.build/bundle.js
· compressed 563,025 563,025 1.00
· minified 10,185,368 10,185,368 1.00
rollup-example/.build/stylex.css
· compressed 99,154 99,154 1.00
· minified 745,649 745,649 1.00