Package size
Yo datadoggers, how's it going?
Is there any way to avoid that big package size?
I am deploying on lambda which runs on size constraints, and even by stripping away *.map and *.d.ts there's still 10mb of diet to do 🤷🏻
For now I'm replacing calls to the SDK with raw HTTP requests. However, I wanted to share that feedback because it makes the usage of the native TS SDK very prohibitive.
Hi,
Thanks for your report. Unfortunately I don't think there is a quick fix here. Stripping docs and comments only shave a few MB, the core seems to be code. Basic minification doesn't seem to change that much either. We'll update if we find a way.
Thanks!
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.
If you would like this issue to remain open:
-
Verify that you can still reproduce the issue in the latest version of this project.
-
Comment that the issue is still reproducible and include updated details requested in the issue template.
Joining the request to fix this, we can't use this lib when it is bloated like that and resort to using raw HTTP API requests