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

Question about bundled size vs advertised size #2807

Open
Sparkenstein opened this issue Jan 12, 2025 · 0 comments
Open

Question about bundled size vs advertised size #2807

Sparkenstein opened this issue Jan 12, 2025 · 0 comments

Comments

@Sparkenstein
Copy link

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:

const dateStr = "2024-03-15";
const parsedDate = dayjs(dateStr);
console.log("Parsed date:", parsedDate.toDate());

after bundle and checking with bundle analyzer I got:

image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant