@samitouri / QOS-React / commits / 3dc41d8a25

fix: parseExportNamesInto specifiers typo (#22537)

btea committed Dec 23, 2021 at 12:08 UTC 3dc41d8a2590768a6ac906cd1f4c11ca00417eee
1 file changed +4 -4
packages/react-server-dom-webpack/src/ReactFlightWebpackNodeLoader.js
+4 -4
@@ -210,10 +210,10 @@ async function parseExportNamesInto(
210 addExportNames(names, node.declaration.id);
211 }
212 }
213 - if (node.specificers) {
214 - const specificers = node.specificers;
215 - for (let j = 0; j < specificers.length; j++) {
216 - addExportNames(names, specificers[j].exported);
213 + if (node.specifiers) {
214 + const specifiers = node.specifiers;
215 + for (let j = 0; j < specifiers.length; j++) {
216 + addExportNames(names, specifiers[j].exported);
217 }
218 }
219 continue;