(filePath: string)
| 112 | * 检查文件是否需要预处理 |
| 113 | */ |
| 114 | export function needsPreprocess(filePath: string): boolean { |
| 115 | const preprocessor = getPreprocessor(filePath) |
| 116 | if (!preprocessor) return false |
| 117 | |
| 118 | const fileSize = getFileSize(filePath) |
| 119 | return preprocessor.needsPreprocess(filePath, fileSize) |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * 流式解析文件 |
no test coverage detected