mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
fix(javascript): consume per-field CommonJS publication facts
This commit is contained in:
1 parent
562966500f
commit
9c4d194f14
2 files changed
+14
-10
No files matched your search
@@ -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