We had recently upgraded one of our codebases which uses next.js with a custom webpack configuration from Next 10 to 11 at smallcase and as part of this upgrade, we also updated all the webpack related plugins and loaders to their latest version to make them compatible with webpack 5…