From 3dc41d8a2590768a6ac906cd1f4c11ca00417eee Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 23 Dec 2021 12:08:56 -0600 Subject: [PATCH] fix: parseExportNamesInto specifiers typo (#22537) --- .../src/ReactFlightWebpackNodeLoader.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-server-dom-webpack/src/ReactFlightWebpackNodeLoader.js b/packages/react-server-dom-webpack/src/ReactFlightWebpackNodeLoader.js index db618f0eb17e2..9652f03405afa 100644 --- a/packages/react-server-dom-webpack/src/ReactFlightWebpackNodeLoader.js +++ b/packages/react-server-dom-webpack/src/ReactFlightWebpackNodeLoader.js @@ -210,10 +210,10 @@ async function parseExportNamesInto( addExportNames(names, node.declaration.id); } } - if (node.specificers) { - const specificers = node.specificers; - for (let j = 0; j < specificers.length; j++) { - addExportNames(names, specificers[j].exported); + if (node.specifiers) { + const specifiers = node.specifiers; + for (let j = 0; j < specifiers.length; j++) { + addExportNames(names, specifiers[j].exported); } } continue;