(pages: NuxtPage[])
| 132 | } |
| 133 | |
| 134 | const resolvePageFiles = (pages: NuxtPage[]) => { |
| 135 | const filePaths: string[] = [] |
| 136 | |
| 137 | pages.forEach((page) => { |
| 138 | if (page.file) { |
| 139 | filePaths.push(page.file) |
| 140 | } |
| 141 | |
| 142 | if (page.children && page.children.length) { |
| 143 | filePaths.push(...resolvePageFiles(page.children)) |
| 144 | } |
| 145 | }) |
| 146 | |
| 147 | return filePaths |
| 148 | } |
| 149 | |
| 150 | const getModuleConfigs = () => { |
| 151 | const thenCallHook = async (resolvedConfig: ResolvedConfig) => { |