(node: CallExpression)
| 108 | } |
| 109 | |
| 110 | export function isImportMetaResolve(node: CallExpression): boolean { |
| 111 | return ( |
| 112 | node.callee.type === "MemberExpression" && |
| 113 | node.callee.object.type === "MetaProperty" && |
| 114 | node.callee.object.meta.name === "import" && |
| 115 | node.callee.object.property.name === "meta" && |
| 116 | node.callee.property.type === "Identifier" && |
| 117 | node.callee.property.name === "resolve" && |
| 118 | node.arguments.length > 0 |
| 119 | ); |
| 120 | } |
| 121 | |
| 122 | export function isJavaScript(path: string): boolean { |
| 123 | return /\.(m|c)?js(\?|$)/i.test(path); |
no outgoing calls
no test coverage detected