(path)
| 268 | } |
| 269 | }, |
| 270 | ImportExpression(path) { |
| 271 | const arg = path.node.source; |
| 272 | if (t.isStringLiteral(arg)) { |
| 273 | const src = arg.value; |
| 274 | if (isVueLike(src)) { |
| 275 | path.node.source = t.stringLiteral('/ns/rt'); |
| 276 | } else if (isNsCorePackage(src)) { |
| 277 | path.node.source = t.stringLiteral('/ns/core'); |
| 278 | } |
| 279 | } |
| 280 | }, |
| 281 | CallExpression(path) { |
| 282 | if (t.isImport(path.node.callee) || (t.isIdentifier(path.node.callee) && path.node.callee.name === 'import')) { |
| 283 | const first = path.node.arguments[0]; |
nothing calls this directly
no test coverage detected