Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSwap out moment for date-fns #1711
Conversation
|
The bundle sizes are actually a regression, probably because Stats from Before: After: |
|
The date parsing is occurring in I've never used the |
|
If we removed chrono-node, the bundle is as expected significantly smaller. Stat 10.81 MB |
|
@razzius nice work/investigation! To answer your question, the assignment creator is an experimental feature and only appears when you load the page with the The assignment form component—and thus any of its dependencies—should be loaded asynchronously, though, so if the effect here is to move the bundle weight of There is an open issue on All that said, I am down to merge this as-is if we can confirm that |
| test: /\.js$/u, | ||
| include: matchModule('moment/locale'), | ||
| use: ['null-loader'], | ||
| }, |
outoftime
Jul 12, 2019
Contributor
I’m guessing this might be why the bundle size increased substantially? (Just adding date-fns should not move the needle much)
I’m guessing this might be why the bundle size increased substantially? (Just adding date-fns should not move the needle much)
|
I see that This PR as-is could be a good approach, too! |
PROOF that the date functionality still works (time from now is displayed in projects list):
The other use case is formatting a date: