Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-jsx

Package Overview
Dependencies
1
Maintainers
4
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.18.6 to 7.21.4-esm

lib/index.js.map

20

lib/index.js

@@ -7,5 +7,3 @@ "use strict";

exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _default = (0, _helperPluginUtils.declare)(api => {

@@ -15,18 +13,14 @@ api.assertVersion(7);

name: "syntax-jsx",
manipulateOptions(opts, parserOpts) {
const {
plugins
} = parserOpts;
if (plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
return;
{
if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
return;
}
}
plugins.push("jsx");
parserOpts.plugins.push("jsx");
}
};
});
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/plugin-syntax-jsx",
"version": "7.18.6",
"version": "7.21.4-esm",
"description": "Allow parsing of jsx",

@@ -20,9 +20,9 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.6"
"@babel/helper-plugin-utils": "^7.21.4-esm"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
"@babel/core": "^7.0.0-0 || 7.21.4-esm"
},
"devDependencies": {
"@babel/core": "^7.18.6"
"@babel/core": "^7.21.4-esm"
},

@@ -29,0 +29,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc