Skip to content

Commit

Permalink
only wait for JS chunks in none runtime backend (vercel/turborepo#5352)
Browse files Browse the repository at this point in the history
### Description

When rendering RSC with CSS in edge, there might be CSS chunks in the
none runtime, which shouldn't be waited for.
  • Loading branch information
sokra authored Jun 21, 2023
1 parent fa73dd6 commit 17b4617
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ function commonJsRequireContext(
// modules.
registerChunkRunner(
chunkPath,
params.otherChunks,
params.otherChunks.filter((chunk) =>
// The none runtime can only handle JS chunks, so we only wait for these
getChunkPath(chunk).endsWith(".js")
),
params.runtimeModuleIds
);
}
Expand Down

0 comments on commit 17b4617

Please sign in to comment.