Open Galcarmi opened 2 months ago
@vankop What do you think about it? Yeah, we have a memory leak here, if you run develpment your application very long our cache will be bigger and bigger, so I think using lru cache is good idea, but I don't know what is will be better number for max
I personally think we dont need cache here.. maybe at first implementation there was some specific usage for resolver.join
, but right now it used in a lot of cases, sometimes even on each plugin call. ( see JoinPlugins ) So probably cache hit is very low. basically happen only on the same resolving, this happens quite rarely on incremental builds
on cold builds it does not make sense either since very low cache hit
@alexander-akait sorry I'm a bit busy, I'll address it at the weekend,
@vankop so do you recommend to just remove it instead?
@vankop Can you test it on some repo and check it?
we have a metrics repo, we just need to setup cache hits there...
Closes https://github.com/webpack/enhanced-resolve/issues/414