awesome-vite icon indicating copy to clipboard operation
awesome-vite copied to clipboard

Add "plugin-jsx-remove-attributes" for react

Open jacobbogers opened this issue 9 months ago • 1 comments

Some time ago I made a vite/rollup plugin, to remove "data-testid" (or whatever you specify) from react source code for production builds

Previous art was using babel (slow).

npm: https://www.npmjs.com/package/rollup-plugin-jsx-remove-attributes git: https://github.com/jacobbogers/rollup-plugin-jsx-remove-attributes#readme

jacobbogers avatar Apr 26 '24 07:04 jacobbogers

this is solving using the Babel plugin

budarin avatar Aug 19 '24 19:08 budarin