logoalt Hacker News

johnfnyesterday at 5:55 AM2 repliesview on HN

That lodash-es doesn’t ESM lodash/fp, which means there is no straightforward way of using it with Vite after version 5. God help me.

I don’t even want to use it, I just want to get legacy code building on a modern version of Vite without rewriting a couple thousand lines of code. Aaaargh


Replies

mediumdeviationyesterday at 6:01 AM

Another fun fact - lodash/fp doesn't deduplicate with lodash when bundled. For a couple of months I was wondering why our app had bundled two copies of lodash. I dismissed it as a measurement artifact at first. It took so long to realize there was actually two copies of lodash and it was because one developer on our team had a preference for fp syntax.

esperentyesterday at 6:07 AM

> lodash-es doesn’t ESM lodash/fp

Most of my career has been JS and TS and I have no idea what this means.

show 2 replies