communication-ui-library icon indicating copy to clipboard operation
communication-ui-library copied to clipboard

Do we need the communication-calling package if we are only using the chat?

Open reliccare opened this issue 5 months ago • 19 comments

I am wondering if this problem was addressed by ACS Team after the issue was brought up. This is a serious issue for React Apps & I think it will help the entire community to relook at the dependencies. Requesting an update from anyone in ACS team.

Thank you!

Discussed in https://github.com/Azure/communication-ui-library/discussions/3208

Originally posted by DercilioFontes June 15, 2023 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:

Screenshot 2023-06-14 at 6 09 37 PM

Is there a way to not have it bundled if it is not used?

My stack:

"@azure/communication-chat": "^1.3.2-beta.1",
"@azure/communication-common": "^2.2.0",
"@azure/communication-react": "^1.5.1-beta.5",
"react": "^18.2.0",
 "vite": "^4.3.9",
```</div>

reliccare avatar Jan 10 '24 14:01 reliccare