| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/node_modules/@babel/eslint-plugin-development/lib/utils/ |
Upload File : |
const getReferenceOrigin = require("./get-reference-origin.cjs");
const getExportName = require("./get-export-name.cjs");
module.exports = function isBabelPluginFactory(node, scope) {
const {
parent
} = node;
if (parent.type === "CallExpression") {
const calleeOrigin = getReferenceOrigin(parent.callee, scope);
return !!(calleeOrigin && calleeOrigin.kind === "import" && calleeOrigin.name === "declare" && calleeOrigin.source === "@babel/helper-plugin-utils");
}
const exportName = getExportName(node);
return exportName === "default" || exportName === "module.exports";
};
//# sourceMappingURL=is-babel-plugin-factory.cjs.map