Skip to content
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

Bug: Unused modules are not tree-shaken #423

Open
devis-velope opened this issue Dec 10, 2024 · 0 comments
Open

Bug: Unused modules are not tree-shaken #423

devis-velope opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@devis-velope
Copy link

Problem/Opportunity

When building a project it seems that tree-shaking is not working as expected. The entire codebase from the package is being bundled, even though only a subset of the modules is being used in the final build.

A main suspect is the Launch export, it is setting up all the initial configs for the different SDK modules. Also, we found setting sideEffects: false on the package JSON of the SDK reduce the bundle size a bit.

Steps to reproduce

No response

Expected Behavior

Tree-shaking should remove unused modules from the build, resulting in a smaller bundle size containing only the necessary code.

Actual Behavior

The full codebase from the package is included in the final build, which increases the bundle size unnecessarily.

Notes (Optional)

Version of the package: 5.5.4

@devis-velope devis-velope added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant