mirror of
https://github.com/morluto/rea
synced 2026-10-27 06:33:32 -04:00
fix(javascript): preserve per-field publication and provenance coverage
This commit is contained in:
@@ -31,6 +31,7 @@ import { assignmentValueSources } from "./javascriptSemanticRequireOrigin.js";
|
||||
import { semanticRuntimeExportValueSources } from "./javascriptModuleDeclaration.js";
|
||||
import {
|
||||
commonJsRuntimeExportValues,
|
||||
commonJsExportApplicability,
|
||||
indexCommonJsExportReceiversSteps,
|
||||
type CommonJsExportReceiverEffect,
|
||||
type CommonJsExportSite,
|
||||
@@ -366,13 +367,14 @@ export const createSemanticElectronAppPathChangeQuery = (
|
||||
commonJsReceivers ??= completeSemanticSteps(
|
||||
indexCommonJsExportReceiversSteps(state),
|
||||
);
|
||||
return (
|
||||
commonJsReceivers.get(node) !== "detached" &&
|
||||
exported.some(
|
||||
({ value, projection, ownEnumerable }) =>
|
||||
value !== null &&
|
||||
possiblePath(value, true, projection, ownEnumerable),
|
||||
)
|
||||
return exported.some(
|
||||
({ exportedName, value, projection, ownEnumerable }) =>
|
||||
commonJsExportApplicability(
|
||||
commonJsReceivers.get(node),
|
||||
exportedName,
|
||||
) !== "detached" &&
|
||||
value !== null &&
|
||||
possiblePath(value, true, projection, ownEnumerable),
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user