-
Notifications
You must be signed in to change notification settings - Fork 22
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
Labels
dependencies
Pull requests that update a dependency file
good first issue
Good for newcomers
help wanted
Extra attention is needed
Comments
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
@luo-dahui @lifapan 麻烦确认下是否可以优化 |
@ranchange 你好,此仓库的dist目录下面有个轻量级的sdk文件web3p.js,是否满足使用; |
你好,我看到web3p.js里面有几个require引用,但是找不到对应的文件在哪里,它的使用方法是什么?是否也需要npm install PlatONnetwork-client-sdk-js?
…------------------ 原始邮件 ------------------
发件人: "PlatONnetwork/client-sdk-js" ***@***.***>;
发送时间: 2021年10月21日(星期四) 上午10:10
***@***.***>;
***@***.******@***.***>;
主题: Re: [PlatONnetwork/client-sdk-js] JS SDK依赖项过大 (#86)
@ranchange 你好,此仓库的dist目录下面有个轻量级的sdk文件web3p.js,是否满足使用;
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
@ranchange 缺少的是@types,不需要安装client-sdk-js |
我把这份web3p.js保存下来后,使用npm install @***@***.***"。标签可能没有encodeURIComponent所编码的任何字符。
这种情况该如何解决?
…------------------ 原始邮件 ------------------
发件人: "PlatONnetwork/client-sdk-js" ***@***.***>;
发送时间: 2021年10月21日(星期四) 上午10:28
***@***.***>;
***@***.******@***.***>;
主题: Re: [PlatONnetwork/client-sdk-js] JS SDK依赖项过大 (#86)
@ranchange ***@***.***,不需要安装client-sdk-js
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Bounty: The JS SDK repeatedly introduces the same dependencies, resulting in an oversized SDK installation package, which is expected to be optimized. |
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
我在开发微信小程序时,使用云开发模式,允许用户在node.js环境下上传不大于500MB的单个云函数,但是我发现JS SDK的整个包太大了,几乎达到了1GB,这让我头很大。
同时我分析了被使用到的require('web3'),我发现其中有大部分的node_module依赖项是重复出现的,所以能否做个优化,将多次出现的node_module去除,或者整合到一个文件夹内,求求你们优化一下吧,我真的很想让大家打开微信就能自己铸造NFT。
The text was updated successfully, but these errors were encountered: