ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
235 stars 57 forks source link

fix: hash token with steps before all finished #183

Closed zombieJ closed 2 months ago

zombieJ commented 2 months ago

fix https://github.com/ant-design/ant-design/issues/48386

原本的 hash 计算需要先把完整 token 转换成 string,然后对 string 做一个总体的 hash。但是对于复杂的 token(如 issue 中的每个组件都做算法转换),string 会过长。这里对于嵌套对象每层都直接做一次转化,从而在转化过程中就消掉空间占用。

github-actions[bot] commented 2 months ago

🎊 PR Preview 4f2def2f14aa4e30bff32a0fb0b4c94b121f3760 has been successfully built and deployed to https://ant-design-cssinjs-preview-pr-183.surge.sh

🕐 Build time: 98.677s

🤖 By surge-preview