-
Notifications
You must be signed in to change notification settings - Fork 895
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
Importing all wallets into final build and increasing the build size. #69
Comments
Can you say more about your project environment and build setup? If your transpiler is set up for tree shaking, this shouldn't happen. |
I'm new to react or js. So, can't answer that. Basically I cloned this repo and did
Then the build size in 13MB. I added Do you suggest I need to do |
Thanks for the additional detail, I'll look into this. |
Thanks will try. Dunno why github not giving mails/notifs. |
Hello @jordansexton, I've removed node modules, changed the version of this package to 0.10.0 in package.json of the repo I've used. But still build consists all these wallets. Am I doing this right? |
Can you mention more about what your project structure / build toolchain looks like? The build now exports esnext modules, so tree shaking should work out of the box for most build systems. |
I've cloning this repo - https://github.com/exiled-apes/candy-machine-mint, changing version of wallet adapter from 0.9.0 to 0.10.0 and then doing
And then doing |
Cool, thank you for providing those steps. I'll do the same tomorrow and check it out. |
#121 could help here. |
I've tested out building the library after converting all the relevant packages to ESM: #132 Unfortunately, running Looking at the Blocto SDK's Still working on a solution here. |
This has been implemented by converting the core and wallet packages to ESM with |
Published:
|
Hello,
So, in code while doing this import, it should only import these three wallets. But yarn analysing final build is showing blocto wallet, torus wallet and all others and increasing the app size a lot. Is there any way to reduct the final build size of apps using this wallet adapter?
The text was updated successfully, but these errors were encountered: