(
type: 'create' | 'delete' | 'update',
file: string,
)
| 848 | } |
| 849 | |
| 850 | const onHMRUpdate = async ( |
| 851 | type: 'create' | 'delete' | 'update', |
| 852 | file: string, |
| 853 | ) => { |
| 854 | if (serverConfig.hmr !== false) { |
| 855 | await handleHMRUpdate(type, file, server) |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | const onFileAddUnlink = async (file: string, isUnlink: boolean) => { |
| 860 | file = normalizePath(file) |
no test coverage detected