by hobofan · 9y ago · 0 comments
- I am surprised that this blog post advertises webpack tree-shaking, as it is completely broken right now, and has been for a year[0]
- More and more people are switching to date-fns[1] from moment.js, since it is much smaller and composable by default, and works better with tree-shaking in rollup (or webpack once it's fixed). Yes, their recommendation of ContextReplacementPlugin is valid, but in the case of moment.js, its probably better to just use a replacement.