fix(next-core): apply image-loader alias to the remaining context (#62070)
### What?
Fix custom image loader not being reflected in some contexts and running
the default image loader when next.config.js is present. For Webpack,
this alias is specified in `createWebpackAlias`
(https://github.com/vercel/next.js/blob/8d28d5954e98060e3a478c6b82acb0fb11c5d6f2/packages/next/src/build/create-compiler-aliases.ts#L22)
and this setting seems to be context-agnostic in base
(https://github.com/vercel/next.js/blob/8d28d5954e98060e3a478c6b82acb0fb11c5d6f2/packages/next/src/build/webpack-config.ts#L649).
Closes PACK-2509