Open barrysteyn opened 6 years ago
Any updates here or progress on #290 ?
this is still an issue and it doesn't seem like any communication here or in the PR linked above has been made as of late. could we please get an update to this, either here or in the PR? will comment on PR as well for visibility
I would love a comment on this too. I'm looking so much forward to getting to build apps with AppSync. With people calling the aws-appsync library "merely a wrapper of the apollo-client", it surprises me to see the apollo-client only taking up 7% of the bundle size.
Any comments?
Might I ask how you are doing today @barrysteyn? Still using AppSync with your own custom client?
@akd-io I have not used app sync for sometime. We migrated away from using GraphQL. However, I did this time ago, I really would have thought things would improve by now.
@barrysteyn I see, thank you for the update. Good luck out there :)
We use appsync too but we put it under a feature module which save like ~55% (1MB) from the main bundle.
Hi There
First, a huge thank you to @manueliglesias - absolutely love appsync.
The problem (as others have pointed out) is the bundle size. It is huge, and the reason it is big is mainly because the entire AWS-SDK is imported. Even if one is not using any feature on the client that needs it. I have two suggestions:
Unfortunately, I could not wait: Using aws-appsync-client in it's current state adds almost 500kb (uncompressed) to our build, which was a blocker. Therefore I stripped things down (and things seem to work). I will provide my solution here for anyone interested, and also @manueliglesias I would appreciate it if you could comment on it.
The following code will create an Apollo client that users openId tokens for auth and subscriptions: