MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / readEsmExport

Function readEsmExport

src/lib/prettierFormatter.js:380–383  ·  view source on GitHub ↗
(statement, scope)

Source from the content-addressed store, hash-verified

378}
379
380function readEsmExport(statement, scope) {
381 if (statement?.type !== "ExportDefaultDeclaration") return undefined;
382 return evaluateNode(statement.declaration, scope);
383}
384
385function isModuleExports(node) {
386 return (

Callers 1

extractConfigFromProgramFunction · 0.85

Calls 1

evaluateNodeFunction · 0.85

Tested by

no test coverage detected