(dir: string)
| 1361 | } |
| 1362 | |
| 1363 | export function getClientBuildManifest(dir: string) { |
| 1364 | let buildId = readFileSync(path.join(dir, getDistDir(), 'BUILD_ID'), 'utf8') |
| 1365 | let code = readFileSync( |
| 1366 | path.join(dir, getDistDir(), 'static', buildId, '_buildManifest.js'), |
| 1367 | 'utf8' |
| 1368 | ) |
| 1369 | // eslint-disable-next-line no-eval |
| 1370 | let manifest = (0, eval)(`var self = global;${code};self.__BUILD_MANIFEST`) |
| 1371 | return manifest |
| 1372 | } |
| 1373 | |
| 1374 | export function getClientBuildManifestLoaderChunkUrlPath( |
| 1375 | dir: string, |
no test coverage detected