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

leancloud-storage 包能小一些吗? #535

Open
chemzqm opened this issue Mar 23, 2018 · 2 comments
Open

leancloud-storage 包能小一些吗? #535

chemzqm opened this issue Mar 23, 2018 · 2 comments

Comments

@chemzqm
Copy link

chemzqm commented Mar 23, 2018

❯ env NODE_ENV=production ./node_modules/.bin/webpack --json | webpack-bundle-size-analyzer
mobx: 151.85 KB (16.4%)
leancloud-storage: 146.4 KB (15.8%)
react-dom: 91.86 KB (9.93%)
@material/slider: 51.91 KB (5.61%)
mobx-react: 35.14 KB (3.80%)
react-transition-group: 18.55 KB (2.01%)
nprogress: 11.29 KB (1.22%)

能否解释下这个包怎么这么大?

@leeyeh
Copy link
Contributor

leeyeh commented Apr 8, 2018

因为逻辑比较复杂,比如 save 中会处理很多复杂的情况。然后有很多模块比如文件、应用内社交、验证码等功能可能用不到,但是目前都打包进去了。

我们欢迎任何能够减少包的体积或者拆分的建议。

@chemzqm chemzqm changed the title leancloud-storage 包能小一些吗?严重影响我家用户体验了 leancloud-storage 包能小一些吗? Apr 8, 2018
@GongT
Copy link
Contributor

GongT commented Apr 9, 2018

最快的解决方法大概是 rollup 处理一下。。

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

No branches or pull requests

3 participants