vechain-sdk-js icon indicating copy to clipboard operation
vechain-sdk-js copied to clipboard

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

Open freemanzMrojo opened this issue 6 months ago • 1 comments

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 avatar Aug 15 '24 16:08 freemanzMrojo