Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@babel/plugin-syntax-jsx
Advanced tools
The @babel/plugin-syntax-jsx npm package allows Babel to parse JSX syntax. JSX is a syntax extension for JavaScript, commonly used with React to describe what the UI should look like. By enabling this plugin, Babel can understand and process JSX syntax, but it does not transform it. To transform JSX, you would need to use another plugin like @babel/plugin-transform-react-jsx.
JSX Parsing
This plugin allows Babel to parse JSX syntax like the one in the code sample, which represents a React element.
const element = <div>Hello, world!</div>;
This package not only parses JSX syntax but also transforms it into React.createElement calls, making it suitable for use in a React application.
This is a Babel preset for all React plugins, including JSX syntax parsing and transformation. It is a more comprehensive package for React development.
Similar to the JSX transformation plugin for React, this plugin is tailored for Vue.js and transforms JSX into Vue.js render functions.
Allow parsing of jsx
See our website @babel/plugin-syntax-jsx for more information.
Using npm:
npm install --save-dev @babel/plugin-syntax-jsx
or using yarn:
yarn add @babel/plugin-syntax-jsx --dev
v7.17.12 (2022-05-16)
babel-plugin-transform-react-constant-elements
babel-generator
babel-plugin-transform-destructuring
babel-parser
babel-parser
, babel-plugin-transform-destructuring
, babel-types
babel-plugin-proposal-decorators
, babel-types
babel-core
babel-core
, babel-generator
, babel-helper-create-class-features-plugin
, babel-helper-create-regexp-features-plugin
, babel-helper-module-transforms
, babel-helper-plugin-utils
, babel-parser
, babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression
, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining
, babel-plugin-external-helpers
, babel-plugin-proposal-async-do-expressions
, babel-plugin-proposal-async-generator-functions
, babel-plugin-proposal-class-properties
, babel-plugin-proposal-class-static-block
, babel-plugin-proposal-decorators
, babel-plugin-proposal-export-default-from
, babel-plugin-proposal-export-namespace-from
, babel-plugin-proposal-function-sent
, babel-plugin-proposal-json-strings
, babel-plugin-proposal-logical-assignment-operators
, babel-plugin-proposal-nullish-coalescing-operator
, babel-plugin-proposal-object-rest-spread
, babel-plugin-proposal-optional-chaining
, babel-plugin-proposal-partial-application
, babel-plugin-proposal-pipeline-operator
, babel-plugin-proposal-private-methods
, babel-plugin-proposal-private-property-in-object
, babel-plugin-proposal-record-and-tuple
, babel-plugin-proposal-unicode-property-regex
, babel-plugin-syntax-decorators
, babel-plugin-syntax-destructuring-private
, babel-plugin-syntax-flow
, babel-plugin-syntax-import-assertions
, babel-plugin-syntax-pipeline-operator
, babel-plugin-syntax-record-and-tuple
, babel-plugin-syntax-typescript
, babel-plugin-transform-arrow-functions
, babel-plugin-transform-async-to-generator
, babel-plugin-transform-block-scoping
, babel-plugin-transform-classes
, babel-plugin-transform-computed-properties
, babel-plugin-transform-destructuring
, babel-plugin-transform-duplicate-keys
, babel-plugin-transform-flow-comments
, babel-plugin-transform-flow-strip-types
, babel-plugin-transform-for-of
, babel-plugin-transform-instanceof
, babel-plugin-transform-jscript
, babel-plugin-transform-literals
, babel-plugin-transform-modules-amd
, babel-plugin-transform-modules-commonjs
, babel-plugin-transform-modules-systemjs
, babel-plugin-transform-modules-umd
, babel-plugin-transform-named-capturing-groups-regex
, babel-plugin-transform-new-target
, babel-plugin-transform-parameters
, babel-plugin-transform-property-mutators
, babel-plugin-transform-proto-to-assign
, babel-plugin-transform-react-constant-elements
, babel-plugin-transform-react-jsx
, babel-plugin-transform-reserved-words
, babel-plugin-transform-runtime
, babel-plugin-transform-spread
, babel-plugin-transform-template-literals
, babel-plugin-transform-typeof-symbol
, babel-plugin-transform-typescript
, babel-preset-env
, babel-preset-flow
, babel-preset-react
, babel-preset-typescript
, babel-traverse
, babel-types
FAQs
Allow parsing of jsx
The npm package @babel/plugin-syntax-jsx receives a total of 27,671,117 weekly downloads. As such, @babel/plugin-syntax-jsx popularity was classified as popular.
We found that @babel/plugin-syntax-jsx 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.