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

@babel/preset-react

Package Overview
Dependencies
Maintainers
5
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/preset-react - npm Package Compare versions

Comparing version 7.0.0 to 7.6.3

56

lib/index.js

@@ -8,55 +8,15 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var _helperPluginUtils = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
return data;
};
var _pluginTransformReactJsx = _interopRequireDefault(require("@babel/plugin-transform-react-jsx"));
return data;
}
var _pluginTransformReactDisplayName = _interopRequireDefault(require("@babel/plugin-transform-react-display-name"));
function _pluginTransformReactJsx() {
const data = _interopRequireDefault(require("@babel/plugin-transform-react-jsx"));
var _pluginTransformReactJsxSource = _interopRequireDefault(require("@babel/plugin-transform-react-jsx-source"));
_pluginTransformReactJsx = function () {
return data;
};
var _pluginTransformReactJsxSelf = _interopRequireDefault(require("@babel/plugin-transform-react-jsx-self"));
return data;
}
function _pluginTransformReactDisplayName() {
const data = _interopRequireDefault(require("@babel/plugin-transform-react-display-name"));
_pluginTransformReactDisplayName = function () {
return data;
};
return data;
}
function _pluginTransformReactJsxSource() {
const data = _interopRequireDefault(require("@babel/plugin-transform-react-jsx-source"));
_pluginTransformReactJsxSource = function () {
return data;
};
return data;
}
function _pluginTransformReactJsxSelf() {
const data = _interopRequireDefault(require("@babel/plugin-transform-react-jsx-self"));
_pluginTransformReactJsxSelf = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = (0, _helperPluginUtils().declare)((api, opts) => {
var _default = (0, _helperPluginUtils.declare)((api, opts) => {
api.assertVersion(7);

@@ -74,3 +34,3 @@ const pragma = opts.pragma || "React.createElement";

return {
plugins: [[_pluginTransformReactJsx().default, {
plugins: [[_pluginTransformReactJsx.default, {
pragma,

@@ -80,3 +40,3 @@ pragmaFrag,

useBuiltIns
}], _pluginTransformReactDisplayName().default, development && _pluginTransformReactJsxSource().default, development && _pluginTransformReactJsxSelf().default].filter(Boolean)
}], _pluginTransformReactDisplayName.default, development && _pluginTransformReactJsxSource.default, development && _pluginTransformReactJsxSelf.default].filter(Boolean)
};

@@ -83,0 +43,0 @@ });

12

package.json
{
"name": "@babel/preset-react",
"version": "7.0.0",
"version": "7.6.3",
"description": "Babel preset for all React plugins.",

@@ -8,2 +8,5 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-react",

@@ -22,6 +25,7 @@ "main": "lib/index.js",

"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/core": "^7.6.3",
"@babel/helper-plugin-test-runner": "^7.0.0",
"@babel/helper-transform-fixture-test-runner": "^7.0.0"
}
"@babel/helper-transform-fixture-test-runner": "^7.6.3"
},
"gitHead": "d329156ebc17da01382acb83e212cb4328534ebc"
}

Sorry, the diff of this file is not supported yet

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