Replies: 1 comment 1 reply
-
|
check out v3 https://wagmi.sh/react/guides/migrate-from-v2-to-v3 controller dependencies are opt in now |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, currently connectors imports third party SDK using dynamic import which is good, but Angular/ESbuild still adds all of it to lazy chunks , it cannot tree shake such dynamic imports correctly, for example our app imports connectors like this:
but bundle still includes lazy chunk for metamask-sdk as shown below:
also it seems new connectors are added regularly, which will add unused lazy chunk in Angular/ESbuild based project.
Supporting connectors import like this could solve this:
Beta Was this translation helpful? Give feedback.
All reactions