@babel/preset-react
Advanced tools
Comparing version 7.0.0 to 7.6.3
@@ -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 @@ }); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4119
30
1