(opts: NormalizedPluginOptions, filePath: string)
| 40 | } |
| 41 | |
| 42 | export function getMenuPathname(opts: NormalizedPluginOptions, filePath: string) { |
| 43 | let pathname = normalizePath(relative(opts.routesDir, filePath)); |
| 44 | pathname = `/` + normalizePath(dirname(pathname)); |
| 45 | return normalizePathname(pathname, opts.basePathname, true)!; |
| 46 | } |
| 47 | |
| 48 | export function getExtension(fileName: string) { |
| 49 | if (typeof fileName === 'string') { |
no test coverage detected