🚀 Feature: Remove sourcemap: true from tsup.config.ts #1909
Labels
good first issue
Good for newcomers, please hop on!
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
For many years now, I've tried to publish sourcemaps in all projects I publish to npm. The idea was that it would be nice for folks debugging through the code to see the source, including pre-transpiled syntax sugar and TypeScript types.
More recently I've seen packages move away from sourcemaps:
.js.map
breaking stack traces typescript-eslint/typescript-eslint#9352: noting that sourcemaps add a lot to the typescript-eslint published output size, and aren't always useful or even correctts-api-utils
dropped the built size a good bitI'm personally now in favor of removing sourcemaps from the default
tsup.config.ts
in CTA and its templates. But just to be safe, I'll leave this issue withstatus: in discussion
for a while. If anybody knows of reasons to do this or not to do this, please post! 🙂Additional Info
Note that this involves editing both the repo's
tsup.config.ts
and theblockTsup
that generates it.🎁
The text was updated successfully, but these errors were encountered: