(str: string, pos: number = 0)
| 40 | } |
| 41 | |
| 42 | function findPreloadMarker(str: string, pos: number = 0): number { |
| 43 | preloadMarkerRE.lastIndex = pos |
| 44 | const result = preloadMarkerRE.exec(str) |
| 45 | return result?.index ?? -1 |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Helper for preloading CSS and direct imports of async chunks in parallel to |