(path: string, config: Omit<ResolversConfig, "path">)
| 179 | |
| 180 | /** Like getResolvers, but for JavaScript modules. */ |
| 181 | export async function getModuleResolvers(path: string, config: Omit<ResolversConfig, "path">): Promise<Resolvers> { |
| 182 | const {root} = config; |
| 183 | return { |
| 184 | path, |
| 185 | hash: getModuleHash(root, path), |
| 186 | assets: new Set(), |
| 187 | anchors: new Set(), |
| 188 | localLinks: new Set(), |
| 189 | ...(await resolveResolvers({localImports: [path], staticImports: [path]}, {path, ...config})) |
| 190 | }; |
| 191 | } |
| 192 | |
| 193 | async function resolveResolvers( |
| 194 | { |
no test coverage detected