Question about bundled size vs advertised size
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
it's not a bug but more like discussion, I don't see discussions enabled on github so opening here.
I was doing some testing with dayjs, when I observed that the bundle size dayjs advertises is 2kb. But in my testing, I could not get it to 2kb no matter what.
My code:
```js
const dateStr = "2024-03-15";
const parsedDate = dayjs(dateStr);
console.log("Parsed date:", parsedDate.toDate());
```
after bundle and checking with bundle analyzer I got:

So is the advertised part "2kb" is after gzipping? Anyway that's coming as 3+kb in my testing
and 7kb before gzipping. It's still pretty small, but just wanted to know if the 2kb part is still valid or am I missing anything
Contributor guide
Assessment
This issue has not been assessed yet.