Skip to content
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

fix: hash token with steps before all finished #183

Merged
merged 3 commits into from
Apr 18, 2024
Merged

fix: hash token with steps before all finished #183

merged 3 commits into from
Apr 18, 2024

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Apr 18, 2024

fix ant-design/ant-design#48386

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

Copy link

github-actions bot commented Apr 18, 2024

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

🕐 Build time: 98.677s

🤖 By surge-preview

@zombieJ zombieJ merged commit 64303f8 into master Apr 18, 2024
8 checks passed
@zombieJ zombieJ deleted the hashed branch April 18, 2024 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants