You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be open to building the project as both a CommonJS package and an ESM package?
This way, users who bundle their code can benefit from tree-shaking (and the Node ecosystem is moving in this direction in general)
This should be a fairly simple change that can be handled purely via tsconfig i.e. no code changes required
Since the project will be built as both CJS and ESM, any projects that can only consume CJS packages will still work without any issues
I'm happy to submit a PR for this if wanted :)
The text was updated successfully, but these errors were encountered:
I would be grateful for the PR. My knowledge on ESM is still a bit lacking. When I worked with it, there were still many issues, and it wasn't a good idea to implement. I recognize that things have changed a bit since then.
At any rate, I appreciate the help! If you open a PR, I will help get it pushed through.
Would you be open to building the project as both a CommonJS package and an ESM package?
This way, users who bundle their code can benefit from tree-shaking (and the Node ecosystem is moving in this direction in general)
This should be a fairly simple change that can be handled purely via
tsconfig
i.e. no code changes requiredSince the project will be built as both CJS and ESM, any projects that can only consume CJS packages will still work without any issues
I'm happy to submit a PR for this if wanted :)
The text was updated successfully, but these errors were encountered: