(pathData: string)
| 3262 | } |
| 3263 | |
| 3264 | const normalizePathData = (pathData: string) => { |
| 3265 | if ( |
| 3266 | (srcRoute === '/' || srcRoute == '/index') && |
| 3267 | pathData.endsWith(RSC_PREFETCH_SUFFIX) |
| 3268 | ) { |
| 3269 | delete lambdas[pathData]; |
| 3270 | return pathData.replace(/([^/]+\.prefetch\.rsc)$/, '__$1'); |
| 3271 | } |
| 3272 | |
| 3273 | return pathData; |
| 3274 | }; |
| 3275 | |
| 3276 | if (outputPathData || outputPathPrefetchData) { |
| 3277 | // If the allowQuery is different than the original allowQuery, then we |
no test coverage detected