Feature request
What are you trying to achieve?
Reduce the package size by switching to ESM-only.
When you searched for similar feature requests, what did you find that might be related?
Followup to #2981.
What would you expect the API to look like?
I think support for CJS projects is probably a must for a project like Sharp, so it can't just be migrated to ESM-only because of dynamic imports. So it would need a change in the API (breaking change), like sharp = await loadSharp().
What alternatives have you considered?
Keep ESM+CJS. Problem: increase in size, files are duplicated.
Please provide sample image(s) that help explain this feature
Feature request
What are you trying to achieve?
Reduce the package size by switching to ESM-only.
When you searched for similar feature requests, what did you find that might be related?
Followup to #2981.
What would you expect the API to look like?
I think support for CJS projects is probably a must for a project like Sharp, so it can't just be migrated to ESM-only because of dynamic imports. So it would need a change in the API (breaking change), like
sharp = await loadSharp().What alternatives have you considered?
Keep ESM+CJS. Problem: increase in size, files are duplicated.
Please provide sample image(s) that help explain this feature