We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
减小包体积
现在的form-render压缩后还有1M。
moment.js 换成 dayjs lodash 换成 lodash-es
The text was updated successfully, but these errors were encountered:
嗯,moment会进行替换。lodash这个问题,感觉开发的大多数中后台项目都明着或者暗着(依赖包的依赖包)引用了lodash,这块改成lodash-es反而会给不少的项目增加体积。
Sorry, something went wrong.
那是他们项目本身的问题。form-render 换成 lodash-es 后和 lodash 有关的代码会很少,相关代码体积小,即使旧有项目使用lodash也无所谓。而且lodash-es取代lodash也是趋势
moment 的问题是不是通过 antd-dayjs-webpack-plugin 这个插件就可以解决,而且可以避免同时打入 dayjs 和 moment 两个时间库
@F-loat 确实可以哈,我下个版本优化一下。v1.3.1 已经做了lodash -> lodash-es 替换
FateRiddle
siyi98
No branches or pull requests
期望的新功能
减小包体积
为什么(简述一下使用场景)
现在的form-render压缩后还有1M。
突破点
moment.js 换成 dayjs
lodash 换成 lodash-es
The text was updated successfully, but these errors were encountered: