decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
414 stars 130 forks source link

[proposal] migrate to esbuild to support esm and commonjs build #1321

Closed cre8 closed 3 months ago

cre8 commented 5 months ago

Is your feature request related to a problem? Please describe. Using TSC we can it either compile it to ESM or commonjs. RIght now there are a lot of systems out there still using commonjs, while others only support ESM.

To fulfill both requirements, we can use a bundler. It has to be checked if the current codebase can be fully migrated to esbuild or not

nklomp commented 5 months ago

This for sure would be welcome for us as well, as it allows us to move to 5.x and first make sure everything works in CJS before updating our ESM support

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

cre8 commented 3 months ago

Closing this issue since some core dependencies are based on typeorm that is only available as esm. So from my point of view it not a good way that only some packages are available as esm +cjs and others only as esm