Refactor image optimization util (#43868)
This PR doesn't change any behavior, its just refactoring. - renamed `webpack/loaders/next-image-loader.js` to `.ts` - moved duplicate code into shared function `optimizeImage()` - support `height` as optional param - convert `extension` to `contentType`
Showing
Please
register
or
sign in
to comment