Hacker News new | past | comments | ask | show | jobs | submit login

But react-dates has moment as dependency, so…



Welcome to the wonderful world of code re-use. Hey, at least we're not re-inventing the wheel.


We're reimporting the wheel (which, by the way, also has moment.js as a dependency)


https://github.com/airbnb/react-dates/blob/master/package.js...

A devDependency is not the same as a dependency.


It's a dev dependency because they use it in unit tests but it's also a peer dependency, meaning that if you want to use the library you need to include moment.


That's my error, thanks for the correction.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: