From 5fdcc14118a5b52fc2622acbd631ddbba248d84d Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Sun, 21 Apr 2024 12:06:46 +0200 Subject: [PATCH] explain --- .../next/src/build/webpack/plugins/flight-client-entry-plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts b/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts index 1b3ec00a22cdb..932c5356c3e04 100644 --- a/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts +++ b/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts @@ -1053,6 +1053,7 @@ function addClientImport( if (importedIdentifiers[0] === '*') { // If there's collected import path with named import identifiers, + // or there's nothing in collected imports are empty. // we should include the whole module. if (!isFirstImport && [...clientImportsSet][0] !== '*') { clientComponentImports[modRequest] = new Set(['*'])