| 3315 | |
| 3316 | // in webpack's filesystem cache or Rspack's persistent one, else "" |
| 3317 | const storeDirIn = (cache: unknown): string => { |
| 3318 | const options = cache as |
| 3319 | | { type?: string; cacheLocation?: string; storage?: { location?: string } } |
| 3320 | | undefined |
| 3321 | const dir = |
| 3322 | options?.type === "filesystem" ? options.cacheLocation |
| 3323 | : options?.type === "persistent" ? options.storage?.location |
| 3324 | : undefined |
| 3325 | return dir ? join(dir, "arktype") : "" |
| 3326 | } |
| 3327 | |
| 3328 | // webpack's resource for a virtual module, e.g. `arktype:~arktype/<hash>` |
| 3329 | const moduleScheme = "arktype:" |