-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
lodash-es 代替 lodash #2220
Comments
有什么参考文档么,为什么要用 lodash-es 来代替 |
|
ahooks 代码里使用 lodash 都是这样用的: import xxx from 'lodash/xxx'; 等价于 import { xxx } from 'lodash-es'; 不会额外增大包体积。 见你提供的参考资料中也提到,用了打包工具两者是都可以的。只不过用 lodash-es 后导入时语法会简单些。 目前这个包的替换不是特别急迫的事,不换也没任何影响(只是开发时导入语法繁琐了点) |
不过我觉着可以来个 PR 优化下?应该替换下依赖和语法就可以 @The-End-Hero |
我来吧 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rt
The text was updated successfully, but these errors were encountered: