Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
babel-plugin-remove-jsx-attributes
Advanced tools
This repository is part of the source code of Wire. You can find more information at [wire.com](https://wire.com) or by contacting opensource@wire.com.
This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.
You can find the published source code at github.com/wireapp.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
This plugin removes attributes from JSX elements. This can be useful in situations where you want to have specific attributes removed for production.
$ yarn add --dev babel-plugin-remove-jsx-attributes
# OR
$ npm install --save-dev babel-plugin-remove-jsx-attributes
When adding babel-plugin-remove-jsx-attributes
to your .babelrc
file, you can specify the patterns of attributes to remove by using the regular expression form.
{
"plugins": [
[
"remove-jsx-attributes",
{"patterns": [
'^myAttribute$'
]}
]
],
"presets": ["react"]
}
In the example above babel-plugin-remove-jsx-attributes
will remove all attributes that match the regular expression ^myAttribute$
before transpiling them to React.createComponent
.
import React from 'react';
const func = () => (<div className="myClass" myAttribute="value" />);
Would be transpiled to:
import React from 'react';
const func = () => React.createElement("div", { className: "myClass" });
$ yarn
$ yarn test
FAQs
This repository is part of the source code of Wire. You can find more information at [wire.com](https://wire.com) or by contacting opensource@wire.com.
We found that babel-plugin-remove-jsx-attributes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.