10 lines
No EOL
355 B
JavaScript
10 lines
No EOL
355 B
JavaScript
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
|