Hi, I'm updating shadow-cljs from 2.12.5 to 2.28.21and it seems like at some point shadow-cljs might have stopped deduplicating npm dependencies? Does anyone know if shadow-cljs used to do this or am I seeing another issue?
the duplicated deps look like this in the build report
yes, the default is now following exactly what your dependency tree wants basically. some builds don't work otherwise.
best way to deal with it is fixing the dependency conflict at the npm level. kinda weird that the same version is used. never seen that before. guessing your top level may have a different version pinned?
you can set :js-options {:allow-nested-packages false} to disallow this
that brings you back to the old behavior
oh ok thanks! I deduped a lot of them with yarn-deduplicate, but this case is very odd, I didn't have a top level version pinned, I think one of the deps was coming from d3 which was top level and the other from mermaidjs. managed to fix it by updating both