mirror of
https://github.com/morluto/rea
synced 2026-10-27 14:42:18 -04:00
fix(javascript): consume per-field CommonJS publication facts
This commit is contained in:
@@ -364,15 +364,13 @@ export const createSemanticElectronAppPathChangeQuery = (
|
||||
(!t.isAssignmentExpression(node) && !t.isCallExpression(node))
|
||||
)
|
||||
return false;
|
||||
commonJsReceivers ??= completeSemanticSteps(
|
||||
const receivers = (commonJsReceivers ??= completeSemanticSteps(
|
||||
indexCommonJsExportReceiversSteps(state),
|
||||
);
|
||||
));
|
||||
return exported.some(
|
||||
({ exportedName, value, projection, ownEnumerable }) =>
|
||||
commonJsExportApplicability(
|
||||
commonJsReceivers.get(node),
|
||||
exportedName,
|
||||
) !== "detached" &&
|
||||
commonJsExportApplicability(receivers.get(node), exportedName) !==
|
||||
"detached" &&
|
||||
value !== null &&
|
||||
possiblePath(value, true, projection, ownEnumerable),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user