Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-react-jsx

Package Overview
Dependencies
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-react-jsx - npm Package Compare versions

Comparing version 7.0.0-beta.2 to 7.0.0-beta.3

28

lib/index.js
"use strict";
exports.__esModule = true;
exports.default = _default;
exports.default = function (_ref) {
var _babelPluginSyntaxJsx = _interopRequireDefault(require("babel-plugin-syntax-jsx"));
var _babelHelperBuilderReactJsx = _interopRequireDefault(require("babel-helper-builder-react-jsx"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _default(_ref, options) {
var t = _ref.types;
var pragma = options.pragma;
var id = pragma || "React.createElement";
var JSX_ANNOTATION_REGEX = /\*?\s*@jsx\s+([^\s]+)/;
var visitor = (0, _babelHelperBuilderReactJsx2.default)({
var visitor = (0, _babelHelperBuilderReactJsx.default)({
pre: function pre(state) {

@@ -26,3 +35,2 @@ var tagName = state.tagName;

var file = state.file;
var id = state.opts.pragma || "React.createElement";
var _arr = file.ast.comments;

@@ -56,15 +64,5 @@

return {
inherits: _babelPluginSyntaxJsx2.default,
inherits: _babelPluginSyntaxJsx.default,
visitor: visitor
};
};
var _babelPluginSyntaxJsx = require("babel-plugin-syntax-jsx");
var _babelPluginSyntaxJsx2 = _interopRequireDefault(_babelPluginSyntaxJsx);
var _babelHelperBuilderReactJsx = require("babel-helper-builder-react-jsx");
var _babelHelperBuilderReactJsx2 = _interopRequireDefault(_babelHelperBuilderReactJsx);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
}
{
"name": "babel-plugin-transform-react-jsx",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "Turn JSX into React function calls",

@@ -12,8 +12,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-react-jsx",

"dependencies": {
"babel-helper-builder-react-jsx": "7.0.0-beta.2",
"babel-plugin-syntax-jsx": "7.0.0-beta.2"
"babel-helper-builder-react-jsx": "7.0.0-beta.3",
"babel-plugin-syntax-jsx": "7.0.0-beta.3"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-beta.2"
"babel-helper-plugin-test-runner": "7.0.0-beta.3"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc