Files
NapCatQQ/.pnpm-store/v3/files/ef/1c37a28c2a3a4e82f5233045c5dc4231ef5d2fb95545a590ac66e427cec431ce8fbbf087bf079c97d8efdffda1958e6b2f944b15659b0b2f61fb2547a5d38a
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

10 lines
355 B
Plaintext

export function isStaticRequire(node) {
return (node &&
node.callee &&
node.callee.type === 'Identifier' &&
node.callee.name === 'require' &&
node.arguments.length === 1 &&
node.arguments[0].type === 'Literal' &&
typeof node.arguments[0].value === 'string');
}
//# sourceMappingURL=static-require.js.map