babel-plugin-transform-react-jsx
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
"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" | ||
} | ||
} |
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
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
4138
+ Addedbabel-helper-builder-react-jsx@7.0.0-beta.3(transitive)
+ Addedbabel-plugin-syntax-jsx@7.0.0-beta.3(transitive)
+ Addedbabel-types@7.0.0-beta.3(transitive)
- Removedbabel-helper-builder-react-jsx@7.0.0-beta.2(transitive)
- Removedbabel-plugin-syntax-jsx@7.0.0-beta.2(transitive)
- Removedbabel-types@7.0.0-beta.2(transitive)