microsoft / griffel

CSS-in-JS with ahead-of-time compilation ⚡️
https://griffel.js.org
MIT License
1.2k stars 61 forks source link

feat: add "classNameHashSalt" for AOT #557

Closed layershifter closed 6 months ago

layershifter commented 6 months ago

This PR adds classNameHashSalt option for Babel plugin & Webpack loader.

The option will be properly documented once it will be implemented also for runtime.

github-actions[bot] commented 6 months ago

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
core
makeResetStyles (runtime)
17.14 kB
6.569 kB
17.149 kB
6.577 kB
9 B
8 B
core
makeStyles (runtime)
25.85 kB
9.242 kB
25.915 kB
9.263 kB
65 B
21 B
react
makeResetStyles (runtime)
19.64 kB
7.562 kB
19.649 kB
7.567 kB
9 B
5 B
react
makeStyles (runtime)
28.355 kB
10.228 kB
28.42 kB
10.252 kB
65 B
24 B
Unchanged fixtures | Package & Exports | Size (minified/GZIP) | | -------------------------------------------------------------------------------------------------------------------------- | -------------------------: | | core
\_\_resetStyles (makeResetStyles) | `273 B`
`197 B` | | core
\_\_styles (makeStyles) | `1.727 kB`
`832 B` | | core
mergeClasses | `1.865 kB`
`900 B` | | core
shorthands.padding() | `4.781 kB`
`1.537 kB` | | react
\_\_css | `1.723 kB`
`812 B` | | react
\_\_styles | `4.187 kB`
`1.832 kB` | | react
makeStaticStyles (runtime) | `9.576 kB`
`4.182 kB` | | shadow-dom
createShadowDOMRenderer | `4.085 kB`
`1.724 kB` |

🤖 This report was generated against 3cac9f0799024e21e4efa5439dd90d91732b4fff