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-react-relay
Advanced tools
Babel plugin for Relay (react-relay) with easy schema configuration in .babelrc
Babel plugin for Relay which works out of the box with your GraphQL endpoint
This package uses babel-relay-plugin
internally but makes usage more convenient and extends its functionality. For example you no longer need to have a build/babelRelayPlugin.js
script.
(The version is the same as babel-relay-plugin
by the way.)
$ npm install -D babel-plugin-react-relay
Note: We recently switched over to graphql-config, so this might be a breaking change for you.
.babelrc
Add the following to your .babelrc
file or the corresponding babel configuration.
{
"plugins": ["react-relay"]
}
This plugin uses the graphql-config format and already works out of the box if you're using another GraphQL dev tool such as this great IntelliJ Plugin.
Add one of the following source options to your package.json
file. See here for more configuration details.
For your convenience, here is the easiest way to configure your GraphQL endpoint:
export GRAPHQL_ENDPOINT="https://your.api/graphql"
Join our Slack community if you run into issues or have questions. We love talking to you!
FAQs
Babel plugin for Relay (react-relay) with easy schema configuration in .babelrc
The npm package babel-plugin-react-relay receives a total of 40 weekly downloads. As such, babel-plugin-react-relay popularity was classified as not popular.
We found that babel-plugin-react-relay 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.