PNPM vs Manual copy paste of JavaScript assets

I was just trying to do pnpm install topbar in Phoenix 1.7, however I couldn’t make it work.

Does everyone just use npm :face_vomiting: or manually copy the required minified JavaScript library?

I am curious about the consensus of post Phoenix 1.6 users, with regards to Esbuil, package installation, versioning and most importantly speed and bloat reduction.

Third Party JS Packages - Docs


P.S. PNPM is definitely faster and produces much smaller node_modules folder compared to anything else. But it uses symlink, which might be the reason it doesn’t work out of the box!

I just use npm. For the handful of dependencies I have it is fine. Just make sure you never upgrade them or else something will break :wink:

1 Like