(opts: PrecompileUnpluginOptions, packages: string[])
| 312 | ) |
| 313 | // arktype left to Node loads as itself, not as the runtime validators use |
| 314 | const inlinedOf = (opts: PrecompileUnpluginOptions, packages: string[]) => |
| 315 | opts.runtime !== "arktype" ? |
| 316 | [ |
| 317 | ...runtimePackages, |
| 318 | // shadow mode, which reads its validators as arktype's runtime |
| 319 | ...(opts.shadow ? ["@ark/aot"] : []), |
| 320 | ...packages, |
| 321 | ...Object.keys(opts.dependencies ?? {}).filter( |
| 322 | name => opts.dependencies![name] === "arktype" |
| 323 | ) |
| 324 | ] |
| 325 | : packages |
| 326 | let inlined = inlinedOf(opts, packages) |
| 327 | const transformedFilter = transformedFilterOf(packages) |
| 328 | const applySettings = (read: Options) => { |
no test coverage detected