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 6.23.0 to 7.0.0-alpha.1

10

lib/index.js

@@ -5,6 +5,2 @@ "use strict";

var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
exports.default = function (_ref) {

@@ -35,3 +31,3 @@ var t = _ref.types;

for (var _iterator = file.ast.comments, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
for (var _iterator = file.ast.comments, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref2;

@@ -84,4 +80,2 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = exports["default"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

9

package.json
{
"name": "babel-plugin-transform-react-jsx",
"version": "6.23.0",
"version": "7.0.0-alpha.1",
"description": "Turn JSX into React function calls",

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

"dependencies": {
"babel-runtime": "^6.22.0",
"babel-helper-builder-react-jsx": "^6.23.0",
"babel-plugin-syntax-jsx": "^6.8.0"
"babel-helper-builder-react-jsx": "7.0.0-alpha.1",
"babel-plugin-syntax-jsx": "7.0.0-alpha.1"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0"
"babel-helper-plugin-test-runner": "7.0.0-alpha.1"
}
}

@@ -67,8 +67,13 @@ # babel-plugin-transform-react-jsx

```js
// without options
Without options:
```json
{
"plugins": ["transform-react-jsx"]
}
// with options
```
With options:
```json
{

@@ -75,0 +80,0 @@ "plugins": [

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