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;