MCPcopy Create free account
hub / github.com/nodejs/node / addCommonjsExport

Function addCommonjsExport

test/fixtures/snapshot/typescript.js:162687–162689  ·  view source on GitHub ↗
(decl)

Source from the content-addressed store, hash-verified

162685 }
162686 }
162687 function addCommonjsExport(decl) {
162688 return __spreadArray([decl], getNamesToExportInCommonJS(decl).map(createExportAssignment), true);
162689 }
162690 function getNamesToExportInCommonJS(decl) {
162691 switch (decl.kind) {
162692 case 256 /* SyntaxKind.FunctionDeclaration */:

Callers 1

addExportFunction · 0.85

Calls 2

mapMethod · 0.65

Tested by

no test coverage detected