(content: string)
| 157 | * identifier is no binding of the module's. |
| 158 | */ |
| 159 | export function defaultExportBinding(content: string): string | null { |
| 160 | return /(?:^|;)\s*export\s+default\s+([A-Za-z_$][\w$]*)\s*(?:;|$)/m.exec(content)?.[1] ?? |
| 161 | extractLocalExportAliases(content).find((a) => a.exportedName === 'default')?.localName ?? null; |
| 162 | } |
no test coverage detected