fix properties of undefined issue

This commit is contained in:
Sha Zhou 2025-04-23 13:52:17 +08:00
parent dc45c1c58e
commit ad5af8bdd0

View File

@ -41,7 +41,7 @@ export async function buildReferences(
};
// Track valid web chunks (above minimum length)
if (chunk.length >= minChunkLength) {
if (chunk?.length >= minChunkLength) {
validWebChunkIndices.add(chunkIndex);
}