Digital Anumati
Answeredsdk
Hot

SDK bundle size — can I tree-shake unused locales?

Asked 22 Aug 20261.2k viewsby Kabir Nair
Score
39
Hot2 replies
Our SDK bundle is 380kb minified, mostly locale files. Only need English + Hindi. How to strip the rest?
39votes2answers1.2kviews
You

No comments yet

Be the first to share your thoughts.

2 Answers

Resolved
Sorted byVotes
44
Accepted Answer
Yes — import from `@digital-anumati/sdk/locales/en` and `/hi` explicitly instead of the barrel. Cuts about 260kb.
You

No comments yet

Be the first to share your thoughts.

Your Answer

0 characters