Remove unncessary source matching from loader (#51775)
The same logic is handled by SWC already, and extracted here:
https://github.com/vercel/next.js/blob/dd937bde09060686493040f04f33267ce2789904/packages/next/src/build/analysis/get-page-static-info.ts#L68