Preparing for system design interviews?  Try bugzed.com →

Babel Plugin to Remove Test IDs

JSON →
library 1.1.0 ·javascript abandoned
verified Jun 17, 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 24
actors 6 distinct systems
last hit 18d ago Bingbot
ByteDance
5
GPTBot
4
Script
1
ChatGPT-User
1
Search engines
1
Humans
8

top countries 🇸🇬 Singapore · 🇺🇸 United States · VN · 🇨🇳 China · 🇨🇦 Canada