( filePath: string, pathType?: PathType )
| 35 | |
| 36 | // 根据用户配置返回绝对路径或者相对路径 |
| 37 | export function getRelativeOrAbsolutePath( |
| 38 | filePath: string, |
| 39 | pathType?: PathType |
| 40 | ) { |
| 41 | return pathType === 'relative' ? getRelativePath(filePath) : filePath; |
| 42 | } |
| 43 | |
| 44 | export function createServer( |
| 45 | callback: (port: number) => any, |
no test coverage detected