Babel plugin for removing object properties
npm install babel-plugin-remove-object-properties#Babel Plugin for Removing Object Properties
Removes nodes in the AST (abstract syntax tree) that match a supplied regex if the node is of type ObjectProperty.
jsx
data-id="test">
We wanted a plugin that would then strip these attributes during the transpilation phase.Installation
`sh
$ npm install babel-plugin-remove-object-properties
`Usage
$3
.babelrc
`json
{
"plugins": [["remove-object-properties", { "regexp": "data-*" }]]
}
``