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

chore(util): 修改 lodash 引入方式 #332

Merged
merged 1 commit into from
Feb 8, 2022
Merged

chore(util): 修改 lodash 引入方式 #332

merged 1 commit into from
Feb 8, 2022

Conversation

xg4
Copy link
Contributor

@xg4 xg4 commented Feb 8, 2022

🤔 这个 PR 的性质是?

  • 是关于什么的改动?
  • 修改 lodash 引入方式
  • lodash 默认导出 UMD 模块,并不支持 ESM
  • build size: 修改前 dist/tdesign.js 1.9M,修改后 dist/tdesign.js 1.4M

🔗 相关 Issue

💡 需求背景和解决方案

修改 lodash 引入方式为文件引入

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@xg4
Copy link
Contributor Author

xg4 commented Feb 8, 2022

lodash 默认导出 UMD 模块,并不支持 ESM,无法 tree shaking,目前是将3处使用ESM的地方改为文件引入

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2022

完成

@honkinglin
Copy link
Collaborator

LGTM

@honkinglin honkinglin merged commit 52acbbe into Tencent:develop Feb 8, 2022
uyarn pushed a commit that referenced this pull request Apr 18, 2022
chore(util): 修改 lodash 引入方式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants