(path: string)
| 15 | * immediately without a restart. |
| 16 | */ |
| 17 | export const getTemplate = (path: string): string => { |
| 18 | if (isProd) { |
| 19 | let template = cache.get(path) |
| 20 | if (template === undefined) { |
| 21 | template = readFileSync(path, 'utf8') |
| 22 | cache.set(path, template) |
| 23 | } |
| 24 | return template |
| 25 | } |
| 26 | |
| 27 | return readFileSync(path, 'utf8') |
| 28 | } |
no outgoing calls
no test coverage detected