Babel Plugin to Remove Test IDs

JSON →
library 1.1.0 ·javascript abandoned
verified May 27, 2026

This Babel plugin automatically strips specified `data-*` attributes (by default, `data-test-id`) from JSX elements during the build process. Its primary motivation is to clean up the production DOM by removing attributes primarily used for end-to-end testing, potentially reducing bundle size and preventing these attributes from appearing in user-facing code. Developed around a pattern suggested at React Alicante in 2017, the package is currently at version 1.1.0 and was last updated over 8 years ago. Given its lack of recent activity and minimal version changes, it is considered stable but largely unmaintained. Key differentiators include its simplicity and direct integration into the Babel pipeline, providing a compile-time solution for attribute removal without runtime overhead.

total hits 26
actors 10 distinct systems
last hit 1d ago Amazonbot
Amazonbot
4
ByteDance
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France