egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.49k stars 209 forks source link

How to remove data-testid #1031

Open TheMikeyRoss opened 8 months ago

TheMikeyRoss commented 8 months ago

Hi, I have a ui component library and I added data-testid to the components so that I can test them with jest but I read that it could be a security issue if it remains in production. Now I want to remove the data-testid when running the build command.

Is there a way to do that in tsup?

Upvote & Fund

Fund with Polar