-
Notifications
You must be signed in to change notification settings - Fork 531
Description
We're hitting file limits in the bundled extension size for Postlight Reader, and I'm pretty sure it's due to the size of this dependency. Right now we can't ship new versions to the Firefox store because of a >4mb bundle file 😅
As far as I can tell, replacing Moment would help immensely. Moment is used in a pretty limited capacity, meaning we're not passing moment() objects around or anything, but it does a lot to parse a wide variety of timestamp strings into an ISO-formatted string. There are probably more efficient ways to do this. (It's also used in a couple tests, so we could move it to devDependencies, or replace those uses as well.)
While we're at it, I believe it would help to audit dependencies that use the full lodash library rather than pulling in utility functions as needed. I'm working on doing this in Reader as well (and I already removed Moment from that codebase).