From 29f2153cbd4ee43f99fefe04a892306278fcac2a Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 21 Jun 2023 19:48:28 +0000 Subject: [PATCH] only wait for JS chunks in none runtime backend --- .../js/src/dev/runtime/none/runtime-backend-none.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/turbopack-ecmascript-runtime/js/src/dev/runtime/none/runtime-backend-none.ts b/crates/turbopack-ecmascript-runtime/js/src/dev/runtime/none/runtime-backend-none.ts index 56230aabaf516..e793c01c9c715 100644 --- a/crates/turbopack-ecmascript-runtime/js/src/dev/runtime/none/runtime-backend-none.ts +++ b/crates/turbopack-ecmascript-runtime/js/src/dev/runtime/none/runtime-backend-none.ts @@ -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 ); }