BetterDiscord / Installer

A simple standalone program which automates the installation, removal and maintenance of BetterDiscord.
https://betterdiscord.app
MIT License
1.77k stars 188 forks source link

Fix webpack builds for modern node versions #333

Closed zerebos closed 1 year ago

Inve1951 commented 1 year ago

why would the old config not work on newer node versions?

zerebos commented 1 year ago

@Inve1951 old webpack4 did not work on modern node versions due to removal of the hashing functions for security reasons (https://github.com/BetterDiscord/Installer/actions/runs/4371207150/jobs/7646862697).

electron-builder builds a config for webpack4 (not 5) and has never been updated for webpack5, so we have to modify the config they generate to be compatible for webpack5