-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove unused classes #782
Comments
If I remove the static "constants" ( |
I tried to generate the Typescript code like this Is there a chance to make this work? |
But even after I "fix" the static constants there are still unused classes in the resulting bundle. |
I believe this is a duplicate of #175. Closing as a duplicate. |
We use custom generator code to generate Typescript classes from a Protobuf definition. We keep all classes in a single, rather big module. A class looks roughly like this:
When bundling the code for the web-app, all classes are preserved in the output whether they are used or not.
We build like this:
Edit: I just checked: Some classes are removed from the output, but I cannot see any pattern.
The text was updated successfully, but these errors were encountered: