Closed zombieJ closed 2 months ago
fix https://github.com/ant-design/ant-design/issues/48386
原本的 hash 计算需要先把完整 token 转换成 string,然后对 string 做一个总体的 hash。但是对于复杂的 token(如 issue 中的每个组件都做算法转换),string 会过长。这里对于嵌套对象每层都直接做一次转化,从而在转化过程中就消掉空间占用。
🎊 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
fix https://github.com/ant-design/ant-design/issues/48386
原本的 hash 计算需要先把完整 token 转换成 string,然后对 string 做一个总体的 hash。但是对于复杂的 token(如 issue 中的每个组件都做算法转换),string 会过长。这里对于嵌套对象每层都直接做一次转化,从而在转化过程中就消掉空间占用。