( moduleList: string[] | undefined, id: string, )
| 142 | } |
| 143 | |
| 144 | export function moduleListContains( |
| 145 | moduleList: string[] | undefined, |
| 146 | id: string, |
| 147 | ): boolean | undefined { |
| 148 | return moduleList?.some( |
| 149 | (m) => m === id || id.startsWith(withTrailingSlash(m)), |
| 150 | ) |
| 151 | } |
| 152 | |
| 153 | export function isOptimizable( |
| 154 | id: string, |
no test coverage detected