next-image-export-optimizer icon indicating copy to clipboard operation
next-image-export-optimizer copied to clipboard

ESM -> Failing to load remoteImages

Open PhilGale92 opened this issue 6 months ago • 0 comments

Hey,

Quick note (appriciate the libray, was exactly what i needed!).

Having problems where i have a project based on ESM; and having a remoteOptimizedImages.js file is failing due to being required in via the library.

Would it be possible to make it a customisable option (maybe via package.json argument) to be able to set the filename / extension.

As in a quick fork I made just to unblock myself, if i set it to remoteOptimizedImages.cjs everything goes through fine. Thought id get thoughts before i make a proper PR to move it upstream via config when i get a momento

Thanks!

PhilGale92 avatar Aug 19 '24 10:08 PhilGale92