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

JS SDK依赖项过大 #86

Open
ghost opened this issue Oct 14, 2021 · 6 comments
Open

JS SDK依赖项过大 #86

ghost opened this issue Oct 14, 2021 · 6 comments
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Oct 14, 2021

我在开发微信小程序时,使用云开发模式,允许用户在node.js环境下上传不大于500MB的单个云函数,但是我发现JS SDK的整个包太大了,几乎达到了1GB,这让我头很大。

同时我分析了被使用到的require('web3'),我发现其中有大部分的node_module依赖项是重复出现的,所以能否做个优化,将多次出现的node_module去除,或者整合到一个文件夹内,求求你们优化一下吧,我真的很想让大家打开微信就能自己铸造NFT。

@biganxin biganxin added dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed labels Oct 20, 2021
@biganxin
Copy link

@luo-dahui @lifapan 麻烦确认下是否可以优化

@DavidRomy
Copy link
Contributor

@ranchange 你好,此仓库的dist目录下面有个轻量级的sdk文件web3p.js,是否满足使用;

@ghost
Copy link
Author

ghost commented Oct 21, 2021 via email

@DavidRomy
Copy link
Contributor

@ranchange 缺少的是@types,不需要安装client-sdk-js

@ghost
Copy link
Author

ghost commented Oct 21, 2021 via email

@biganxin
Copy link

Bounty: The JS SDK repeatedly introduces the same dependencies, resulting in an oversized SDK installation package, which is expected to be optimized.
Welcome to reply and claim the bounty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants