@babel/helper-annotate-as-pure
Advanced tools
Comparing version 7.0.0-beta.43 to 7.0.0-beta.44
@@ -9,5 +9,5 @@ "use strict"; | ||
function t() { | ||
const data = _interopRequireWildcard(require("@babel/types")); | ||
var data = _interopRequireWildcard(require("@babel/types")); | ||
t = function () { | ||
t = function t() { | ||
return data; | ||
@@ -21,10 +21,13 @@ }; | ||
const PURE_ANNOTATION = "#__PURE__"; | ||
var PURE_ANNOTATION = "#__PURE__"; | ||
const isPureAnnotated = ({ | ||
leadingComments | ||
}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value)); | ||
var isPureAnnotated = function isPureAnnotated(_ref) { | ||
var leadingComments = _ref.leadingComments; | ||
return !!leadingComments && leadingComments.some(function (comment) { | ||
return /[@#]__PURE__/.test(comment.value); | ||
}); | ||
}; | ||
function annotateAsPure(pathOrNode) { | ||
const node = pathOrNode.node || pathOrNode; | ||
var node = pathOrNode.node || pathOrNode; | ||
@@ -31,0 +34,0 @@ if (isPureAnnotated(node)) { |
{ | ||
"name": "@babel/helper-annotate-as-pure", | ||
"version": "7.0.0-beta.43", | ||
"version": "7.0.0-beta.44", | ||
"description": "Helper function to annotate paths and nodes with #__PURE__ comment", | ||
@@ -9,4 +9,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-annotate-as-pure", | ||
"dependencies": { | ||
"@babel/types": "7.0.0-beta.43" | ||
"@babel/types": "7.0.0-beta.44" | ||
} | ||
} |
2331
27
+ Added@babel/types@7.0.0-beta.44(transitive)
- Removed@babel/types@7.0.0-beta.43(transitive)
Updated@babel/types@7.0.0-beta.44