I just upgraded a big frontend project to build with Webpack 5, which required updating a bunch of loader plugins. One of these is the string-replace-plugin.
string-replace-plugin