(p)
| 2991 | const imports: Array<{ src: string; wantsDefault: boolean }> = []; |
| 2992 | babelTraverse(ast, { |
| 2993 | ImportDeclaration(p) { |
| 2994 | const src = p.node.source.value; |
| 2995 | if (typeof src !== 'string') return; |
| 2996 | const wantsDefault = p.node.specifiers.some((s: any) => s.type === 'ImportDefaultSpecifier'); |
| 2997 | imports.push({ src, wantsDefault }); |
| 2998 | }, |
| 2999 | }); |
| 3000 | // Resolve and verify each static import that asks for default |
| 3001 | for (const imp of imports) { |