Duplicated packages

Hi,

I’m trying to use a local rescript package (B) in an a rescript website (A) using Vite with yarn, both shared some other rescript package in common. Therefore, when try to build A with rescript build -with-deps I got multiple Duplicated warnings and the result doesn’t work correctly.

Does anyone have any ideas on how to solve this problem?

Thanks <3

Maybe using GitHub - rolandpeelen/rewatch: Rewatch is an alternative build system for the Rescript Compiler. will help.

Thanks, I’ll look at it. However, I’m not using a monorepo so I’m not sure it’s very appropriate.