mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 13:42:20 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
24
web/node_modules/@babel/helper-annotate-as-pure/lib/index.js
generated
vendored
Normal file
24
web/node_modules/@babel/helper-annotate-as-pure/lib/index.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = annotateAsPure;
|
||||
|
||||
var t = require("@babel/types");
|
||||
|
||||
const PURE_ANNOTATION = "#__PURE__";
|
||||
|
||||
const isPureAnnotated = ({
|
||||
leadingComments
|
||||
}) => !!leadingComments && leadingComments.some(comment => /[@#]__PURE__/.test(comment.value));
|
||||
|
||||
function annotateAsPure(pathOrNode) {
|
||||
const node = pathOrNode["node"] || pathOrNode;
|
||||
|
||||
if (isPureAnnotated(node)) {
|
||||
return;
|
||||
}
|
||||
|
||||
t.addComment(node, "leading", PURE_ANNOTATION);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue