( importer: string )
| 279 | // resolving arktype for a module outside node_modules doesn't wait on the |
| 280 | // worker, which may wait on the bundler |
| 281 | const readDependency = async ( |
| 282 | importer: string |
| 283 | ): Promise<RenderedDiagnostics> => { |
| 284 | const file = fileOf(importer) |
| 285 | return dependencyOf(file) ? |
| 286 | (request("readDependency", file) as Promise<RenderedDiagnostics>) |
| 287 | : noDiagnostics() |
| 288 | } |
| 289 | let productionHost = createNodeHost(opts) |
| 290 | let developmentHost: PrecompileHost | undefined |
| 291 | // resolves as the bundler's mode would, e.g. arktype/runtime in development |
no test coverage detected