Closed yellowsink closed 2 years ago
Hmm...This issue seems to be due to @crossani/flip
and @crossani/spring
using 2 different versions of crossani
Ah, that makes sense, my fault then - I should be using peer deps come to think of it...
Also strange that they don't have ^
- must be an issue with my monorepo setup or something.
Was on my end, after fixing package vers is deduping as necessary.
And in case anyone else with this occuring comes across this - make sure if you're using a pnpm monorepo that you are using workspace:^
not workspace^*
TIL, thanks for leaving that feedback
I was using bundlejs recently to test the bundle sizes of a library I author, crossani.
I was testing the size of it with two addon packages (
@crossani/spring
and@crossani/flip
), which both importcrossani
.Bundlejs did not de-duplicate these imports of the same module, causing a bundle size larger than most real-world build tools would produce, in which one copy of the
crossani
package is bundled and used by both.More generally:
a
importsc
b
importsc
tooc
included in bundle twice