( mtimes: Record<string, number>, currentMtimeOf: (file: string) => number = mtimeOf )
| 1110 | // whether a file changed since it was read, as what the precompiler cached |
| 1111 | // for any module may be read for the next one |
| 1112 | const hasChanged = ( |
| 1113 | mtimes: Record<string, number>, |
| 1114 | currentMtimeOf: (file: string) => number = mtimeOf |
| 1115 | ) => Object.keys(mtimes).some(file => mtimes[file] !== currentMtimeOf(file)) |
| 1116 | |
| 1117 | export interface KeyedPrecompiler { |
| 1118 | precompile(source: string, id: string): PrecompiledKeyedModule |
no test coverage detected