Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@babel/plugin-transform-react-jsx-development
Advanced tools
Turn JSX into React function calls in development
The @babel/plugin-transform-react-jsx-development package is a Babel plugin specifically designed for transforming React JSX syntax into JavaScript code during development. This plugin provides enhanced debugging capabilities by including more descriptive names and locations in the transformed code, which helps in debugging React components more effectively.
Transform JSX to JavaScript
Converts JSX syntax into JavaScript, making it understandable by browsers. In development mode, it includes specific details such as component names and line numbers to aid in debugging.
const element = <div>Hello, world!</div>;
Source location tracking
Embeds source location information into the transformed code, which helps in tracing back to the original source code location during debugging.
const profile = <Profile name='John Doe' />;
Similar to @babel/plugin-transform-react-jsx-development, this package transforms JSX into JavaScript. The main difference is that it is optimized for production use, focusing on performance optimizations and smaller output without detailed debugging information.
This package is a Babel preset that includes @babel/plugin-transform-react-jsx along with other plugins and configurations tailored for React apps. It simplifies setup but is less customizable compared to using individual plugins like @babel/plugin-transform-react-jsx-development.
Turn JSX into React function calls in development
See our website @babel/plugin-transform-react-jsx-development for more information.
Using npm:
npm install --save-dev @babel/plugin-transform-react-jsx-development
or using yarn:
yarn add @babel/plugin-transform-react-jsx-development --dev
v7.25.9 (2024-10-22)
babel-parser
, babel-template
, babel-types
syntacticPlaceholders
mode (@liuxingbaoyu)babel-helper-compilation-targets
, babel-preset-env
ClassAccessorProperty
to prevent the no-undef
rule (@victorenator)babel-parser
, babel-types
VISITOR_KEYS
etc. faster to access (@liuxingbaoyu)FAQs
Turn JSX into React function calls in development
The npm package @babel/plugin-transform-react-jsx-development receives a total of 12,797,593 weekly downloads. As such, @babel/plugin-transform-react-jsx-development popularity was classified as popular.
We found that @babel/plugin-transform-react-jsx-development demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.