I think developers probably tree-shake the HTML/CSS/JS that is running inside of Electron, but tree-shaking all of Chromium can't be the easiest thing to do. Not that I disagree with you, that should be a part of the Electron publishing/packaging step.