diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:10:59 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-05-18 23:41:44 +0800 |
| commit | fc87c009806dcc98867f6b58efe29b042aa01dee (patch) | |
| tree | 8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/@babel/helper-annotate-as-pure/lib | |
| parent | 3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff) | |
node: updatemain
Diffstat (limited to 'node_modules/@babel/helper-annotate-as-pure/lib')
| -rw-r--r-- | node_modules/@babel/helper-annotate-as-pure/lib/index.js | 23 | ||||
| -rw-r--r-- | node_modules/@babel/helper-annotate-as-pure/lib/index.js.map | 1 |
2 files changed, 0 insertions, 24 deletions
diff --git a/node_modules/@babel/helper-annotate-as-pure/lib/index.js b/node_modules/@babel/helper-annotate-as-pure/lib/index.js deleted file mode 100644 index 05ae2e9a..00000000 --- a/node_modules/@babel/helper-annotate-as-pure/lib/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = annotateAsPure; -var _t = require("@babel/types"); -const { - addComment -} = _t; -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; - } - addComment(node, "leading", PURE_ANNOTATION); -} - -//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map b/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map deleted file mode 100644 index 2e49049c..00000000 --- a/node_modules/@babel/helper-annotate-as-pure/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["_t","require","addComment","PURE_ANNOTATION","isPureAnnotated","leadingComments","some","comment","test","value","annotateAsPure","pathOrNode","node"],"sources":["../src/index.ts"],"sourcesContent":["import { addComment, type Node } from \"@babel/types\";\n\nconst PURE_ANNOTATION = \"#__PURE__\";\n\nconst isPureAnnotated = ({ leadingComments }: Node): boolean =>\n !!leadingComments &&\n leadingComments.some(comment => /[@#]__PURE__/.test(comment.value));\n\nexport default function annotateAsPure(\n pathOrNode: Node | { node: Node },\n): void {\n const node =\n // @ts-expect-error Node will not have `node` property\n (pathOrNode[\"node\"] || pathOrNode) as Node;\n if (isPureAnnotated(node)) {\n return;\n }\n addComment(node, \"leading\", PURE_ANNOTATION);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,EAAA,GAAAC,OAAA;AAAqD;EAA5CC;AAAU,IAAAF,EAAA;AAEnB,MAAMG,eAAe,GAAG,WAAW;AAEnC,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAsB,CAAC,KAChD,CAAC,CAACA,eAAe,IACjBA,eAAe,CAACC,IAAI,CAACC,OAAO,IAAI,cAAc,CAACC,IAAI,CAACD,OAAO,CAACE,KAAK,CAAC,CAAC;AAEtD,SAASC,cAAcA,CACpCC,UAAiC,EAC3B;EACN,MAAMC,IAAI,GAEPD,UAAU,CAAC,MAAM,CAAC,IAAIA,UAAmB;EAC5C,IAAIP,eAAe,CAACQ,IAAI,CAAC,EAAE;IACzB;EACF;EACAV,UAAU,CAACU,IAAI,EAAE,SAAS,EAAET,eAAe,CAAC;AAC9C","ignoreList":[]}
\ No newline at end of file |
