It would be nice if tsup had an option to automatically create an esm wrapper around the cjs module instead of compiling the esm module.
https://nodejs.org/api/packages.html#approach-1-use-an-es-module-wrapper
This would prevent the Dual CommonJS/ES module packages bug.
https://nodejs.org/api/packages.html#dual-commonjses-module-packages
@egoist any thoughts???
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too