-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minify compiled style keys #875
Conversation
workflow: benchmarks/sizeComparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.
|
packages/babel-plugin/__tests__/evaluation/stylex-import-evaluation-test.js
Outdated
Show resolved
Hide resolved
Updated to use a new feature flag for controlling this behavior - |
a22117d
to
ac87f28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The config option makes this a lot safer to roll out. Thanks!
I still need to figure out why the dynamic styles output changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still looks good!
Reduce the size of minifed JS by "minifying" the compiled style keys produced by StyleX. This patch uses a base 62 hashing function to generate smaller hashes, which are prefixed with `k` to avoid requiring quotes around hashes that start with a number.
What changed / motivation ?
Reduce the size of minifed JS by "minifying" the compiled style keys produced by StyleX. This patch uses a base 62 hashing function to generate smaller hashes, which are prefixed with
k
to avoid requiring quotes around hashes that start with a number.Fix #741
Pre-flight checklist
Contribution Guidelines