Fix loader rule with wrong matching conditions (#47261
This Webpack loader rule should have the exactly same conditions as
https://github.com/vercel/next.js/blob/828fd5a162b02c41cbfbef539688ae454594f24c/packages/next/src/build/webpack-config.ts#L1940-L1951
Except that it matches 2 special layers and an extra loader.