| 2472 | let scannedFiles = 0; |
| 2473 | const storeFileCache = new Map<string, boolean>(); |
| 2474 | const isStoreFile = (file: string): boolean => { |
| 2475 | let v = storeFileCache.get(file); |
| 2476 | if (v === undefined) { |
| 2477 | const c = ctx.readFile(file); |
| 2478 | const seen = new Set<string>(); |
| 2479 | if (c) { |
| 2480 | VUEX_STORE_SIGNAL.lastIndex = 0; |
| 2481 | let sm: RegExpExecArray | null; |
| 2482 | while ((sm = VUEX_STORE_SIGNAL.exec(c))) { seen.add(sm[0]); if (seen.size >= 2) break; } |
| 2483 | } |
| 2484 | v = seen.size >= 2; |
| 2485 | storeFileCache.set(file, v); |
| 2486 | } |
| 2487 | return v; |
| 2488 | }; |
| 2489 | |
| 2490 | const resolve = (key: string, dispatchFile: string): Node | null => { |
| 2491 | const segs = key.split('/'); |