Skip to content

Commit ee6683e

Browse files
authored
only wait for JS chunks in none runtime backend (#5352)
### Description When rendering RSC with CSS in edge, there might be CSS chunks in the none runtime, which shouldn't be waited for.
1 parent 8f3ec2c commit ee6683e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/turbopack-ecmascript-runtime/js/src/dev/runtime/none/runtime-backend-none.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ function commonJsRequireContext(
5050
// modules.
5151
registerChunkRunner(
5252
chunkPath,
53-
params.otherChunks,
53+
params.otherChunks.filter((chunk) =>
54+
// The none runtime can only handle JS chunks, so we only wait for these
55+
getChunkPath(chunk).endsWith(".js")
56+
),
5457
params.runtimeModuleIds
5558
);
5659
}

0 commit comments

Comments
 (0)