Bundler Updates: Difference between revisions

SWC was not a new bundler
m (Grammarly)
(SWC was not a new bundler)
Line 6: Line 6:


== 1000 character line splitting ==
== 1000 character line splitting ==
On July 29, 2021, Discord added a Babel rule to split every line of code into 1000 characters within the limits of syntax. At the time, no public client mods broke because none searched modules by code or used module patching.
On July 29, 2021, Discord added a [https://babeljs.io/ Babel] rule to split every line of code into 1000 characters within the limits of syntax. At the time, no public client mods broke because none searched modules by code or used module patching.


== Webpack 5 ==
== Webpack 5 ==
Line 15: Line 15:


== SWC ==
== SWC ==
On September 26, 2022, Discord switched from Webpack to [https://swc.rs/ SWC]. This is considered the great cataclysmic event that killed off almost every client mod.
On September 26, 2022, Discord switched from Babel to [https://swc.rs/ SWC]. This is considered the great cataclysmic event that killed off almost every client mod.


React component display names were removed, making it harder for mods to find components.
React component display names were removed, making it harder for mods to find components.
Line 23: Line 23:


== Rspack ==
== Rspack ==
On October 26, 2023, Discord switched from SWC to [https://www.rspack.dev/ Rspack]. While not as cataclysmic, it wasn't without issues.
On October 26, 2023, Discord switched from Webpack to [https://www.rspack.dev/ Rspack]. While not as cataclysmic, it wasn't without issues.


Module export names return. This caused parts of mods broken by SWC to work in some capacity, excluding React component display names.
Module export names return. This caused parts of mods broken by SWC to work in some capacity, excluding React component display names.
12

edits