How to get rid of multiple usages of bn.js in nextjs bundle?

Viewed 124

Is there a way to unify dependencies in react/nextjs to avoid multiple usages of a specific library ( in this case bn.js ) in the final bundle?

My application suffers from bundle size and when I use nextjs analyzer I see a lot of usages of this library and I was wondering if there is something to apply and use this once!?

enter image description here

0 Answers
Related