(filePath: string, content: string)
| 249 | * indexer persists to `files.generated`. |
| 250 | */ |
| 251 | export function detectGeneratedFile(filePath: string, content: string): boolean { |
| 252 | return isGeneratedFile(filePath) || hasGeneratedHeader(content) || isMinifiedContent(filePath, content); |
| 253 | } |
| 254 | |
| 255 | /** Scripts a bundler or minifier writes as a few enormous lines. */ |
| 256 | const MINIFIABLE_SCRIPT = /\.(?:m?js|cjs)$/i; |
no test coverage detected