vite-plugin-react-remove-attributes weekly downloads statistics
By l-mbert · npm · Vite plugins
A Vite-Plugin for React to remove Attributes on bundling
vite-plugin-react-remove-attributes has 9,658 recorded weekly downloads on npm, an increase of 96.7% over the past 30 days, ranking #1277 of 3,247 tracked listings.
About vite-plugin-react-remove-attributes
vite-plugin-react-remove-attributes
!!! NOT ALL CASES TESTED YET, USE WITH CARE
A Vite-Plugin for React to remove Attributes on bundling
Having data-testid, data-cy, etc. in your Production Code isn't nice, it makes the DOMTree unreadable.
This Plugin will remove all of them on bundling.
Install
Yarn
yarn add -D vite-plugin-react-remove-attributes
npm
npm i -D vite-plugin-react-remove-attributes
Usage
You must define which attributes are to be removed in the parsing process. Optionally you can define files that must be included/excluded with the optional include/exclude parameters. Both include and exclude are documented here.
By default, include is defined to read all files in the vite/rollup pipeline that end with .(mjs|cjs|js|jsx|mts|cts|ts|tsx) and exclude is set to ignore **/node_modules/**.
import { defineConfig } from 'vite';
import VitePluginReactRemoveAttributes from 'vite-plugin-react-remove-attributes';
export default defineConfig({
plugins: [
VitePluginReactRemoveAttributes({
attributes: ['ATTRIBUTES TO REMOVE'],
}),
],
});
Description from the npm listing.
- vite
- vite-plugin
- react-remove-attributes
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Vite plugins plugins
All 20 vite-plugin-react-remove-attributes alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-react-remove-attributes. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.