(node)
| 132 | } |
| 133 | |
| 134 | export function hasDefineEsmProperty(node) { |
| 135 | return node.properties.some((property) => { |
| 136 | if ( |
| 137 | property.type === 'Property' && |
| 138 | property.key.type === 'Identifier' && |
| 139 | property.key.name === '__esModule' && |
| 140 | isTruthy(property.value) |
| 141 | ) { |
| 142 | return true; |
| 143 | } |
| 144 | return false; |
| 145 | }); |
| 146 | } |
nothing calls this directly
no test coverage detected