Include "babel-plugin-react-remove-properties" functionality #6057
leandroluk
started this conversation in
General
Replies: 1 comment
-
Babel itself does not provides this kind of features but 3rd party plugin offers, I believe this should be written in SWC plugin as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
When creating a web project, it is quite common to use the data-testid attribute to identify elements in components. In a production environment these attributes only serve to pollute and increase the size of the final file and to solve the problem there is the plugin babel-plugin-react-remove-properties
The way to use this plugin is very simple see:
Babel plugin or link to the feature description
https://www.npmjs.com/package/babel-plugin-react-remove-properties
Additional context
This type of resource is important to reduce the size of the pages so it optimizes SEO
Beta Was this translation helpful? Give feedback.
All reactions