dmtrKovalenko / dmtrKovalenko/date-io

Tree shaking

Open
#616 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
754
Forks
92
PR merge metrics
No merged PRs in 30d

Description

I'm using `@mui/lab/AdapterDateFns` which depends on `@date-io/date-fns`. When i build the app using webpack with production mode, the date-fns bundle size is still too large (254 kb)
![image](https://user-images.githubusercontent.com/42912189/171088763-02415cdf-9e40-4875-aaa5-bde4a564856d.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported production-mode webpack build using @mui/lab/AdapterDateFns and @date-io/date-fns, then inspect the generated bundle and package entry points. Done means identifying why the date-fns bundle reaches 254 KB and documenting or implementing a tree-shaking-compatible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, webpack
Domain
build-system, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.