triplex icon indicating copy to clipboard operation
triplex copied to clipboard

The esbuild dependency has all platforms available in the macOS distributable

Open dceddia opened this issue 2 years ago • 1 comments

First off I just wanted to say this is an amazing project. Excellent work! It's a ton of fun to play around with.

I'm always curious about what's inside native apps so I almost reflexively clicked into Show Package Contents on Triplex.app. It's pretty common for Frameworks to be big because of Electron, but Resources was big too, and I noticed all of it is in node_modules (seems reasonable), and then most of that is in @esbuild – 175mb worth!

I'm not sure what step of the Electron build process this would go in, but it seems like this folder could be pruned (almost?) entirely and save a bunch of space in the download. It seems it shouldn't need those binaries during runtime, and there might be other folders that could be pruned too (esbuild, vite, and rollup probably?).

CleanShot 2023-10-02 at 11 30 16@2x

dceddia avatar Oct 02 '23 15:10 dceddia

Thank you! Yeah we definitely don't need to be including all the platform esbuild packages, hey! Good catch. Will update this issue to be both resolving this + adding ASAR archiving.

itsdouges avatar Oct 02 '23 21:10 itsdouges