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
[tree shaking]使用vite开发时,浏览器过多无用请求 #3079
Comments
👋 @ChengZicy,感谢给 TDesign 提出了 issue。 |
补充:全局导入也是一样 |
https://stackblitz.com/edit/yyyqnc-ytgbmc?file=src%2Fmain.js |
应该可以确定是这个提交导致 icon 被 splitting 了 已经在对应仓库发起了 issue 了。
这个是 chrome 的 bug,已经修复合入 chrome 115 了 |
有两部分 一部分是图标的Chunk 一部分是其他组件的css 处理中 |
icons-vue-next 升级至 0.1.12 可以解决图标chunk加载的问题 |
tdesign-vue-next 版本
1.3.10
重现链接
No response
重现步骤
使用按需引入或者使用auto-import引入时,都会出现这样的情况
浏览器会加载所有icon的js,以及所有组件的style,因为请求过多,导致devtools每次打开都会很卡
期望结果
按需引入只加载应加载的部分,例如引入button,就只加载button有关的css
可以提供一个开关,是否加载icon资源
实际结果
No response
框架版本
3
浏览器版本
No response
系统版本
No response
Node版本
18
补充说明
No response
The text was updated successfully, but these errors were encountered: