vechain / vechain-sdk-js

The official JavaScript SDK for VeChain.
23 stars 9 forks source link

💡 [REQUEST] - Investigate whether it makes sense to exclude all dependencies from ESM bundling #1174

Closed freemanzMrojo closed 1 week ago

freemanzMrojo commented 4 weeks ago

Summary

We found out that tsup is including all the transpilations from the dependencies in the index.mjs, causing issues like for example with webpack for NextJS apps.

In the tsup website, they suggest that in general we do not need to transpile dependencies, and that it might be a good idea to actually exclude them altogether.

The purpose of this ticket is to investigate and implement this if it makes sense.

Basic Example

Because of this bug #1157

freemanzMrojo commented 3 weeks ago

@fabiorigam this would be the follow-up ticket for the Webpack/Node libraries bug fix.