I'm looking into reducing the number of files in our server build.
Turns out that keytar brings in a lot of file because the use of prebuild-install in the install script.
Because of that prebuild-install is a dependency (not just a dev dependency) and prebuild-install and all it's dependencies end up in the bits we ship (tar-fs, tar-stream, readable-stream....).
It's not easy to remove all these unnecessary from the build. We have a hand curated filter (https://github.com/microsoft/vscode/blob/main/build/.moduleignore) but that's cumbersome and might change after an update.
I'm looking into reducing the number of files in our server build.
Turns out that
keytarbrings in a lot of file because the use ofprebuild-installin theinstallscript.Because of that
prebuild-installis a dependency (not just a dev dependency) andprebuild-installand all it's dependencies end up in the bits we ship (tar-fs, tar-stream, readable-stream....).It's not easy to remove all these unnecessary from the build. We have a hand curated filter (https://github.com/microsoft/vscode/blob/main/build/.moduleignore) but that's cumbersome and might change after an update.