Do we need the communication-calling package if we are only using the chat? #3208
Replies: 4 comments 1 reply
-
I created a custom package removing the calling part. Incredibly, it was linked by a single small function that does depend on the calling code, by was placed in the CallComposite folder, using common functions that could be in their folder to avoid the coupling. Everything is working fine with the chat. So, this reduced my app from more than 14k modules to 2.5k and the last bundle from 8Mb to 2.5Mb! It would be great to have a chat library independent of the video/calling libraries for those who want to build only a chat app.
|
Beta Was this translation helpful? Give feedback.
-
@DercilioFontes , how did you remove the calling part? I am also running into this issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @DercilioFontes and @greenpau, We have tracked this issue in our backlog. As a workaround for now, could you try to exclude the calling dependencies with HtmlWebpackPlugin from the bundle for webpack or similar plugins for Vite? Please see this link as a refference. |
Beta Was this translation helpful? Give feedback.
-
@DercilioFontes , thank you for your quick response! Appreciate the help! |
Beta Was this translation helpful? Give feedback.
-
The communication-calling package is huge, and I was trying to reduce my app/website size.
I didn't install the
@azure/communication-calling
, but it is a dependency that greatly impacts my bundle size. Check image:Is there a way to not have it bundled if it is not used?
My stack:
Beta Was this translation helpful? Give feedback.
All reactions