grantila/suretype

Support of CommonJs?

dbartholomae opened this issue · 0 comments

Hi there!

Do you have plans to support CommonJS, e.g. via a bundler, in the future? Due to Jest and some other parts of the ecosystem which are not there yet, I can't yet fully convert my codebase to ESM, and without fixes like 80c2b2b I can't use suretype with current TypeScript versions. So without the ability to use Suretype with CommonJS, I'll have to switch to a different library.

Happy to help with a PR to add a bundler for CommonJS in case you want to support it.