Closed freemanzMrojo closed 1 week ago
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.
tsup
index.mjs
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.
Because of this bug #1157
@fabiorigam this would be the follow-up ticket for the Webpack/Node libraries bug fix.
Summary
We found out that
tsup
is including all the transpilations from the dependencies in theindex.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