MCPcopy Index your code
hub / github.com/nodejs/node / setCommonJsModuleIndicator

Function setCommonJsModuleIndicator

test/fixtures/snapshot/typescript.js:47135–47146  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

47133 }
47134 }
47135 function setCommonJsModuleIndicator(node) {
47136 if (file.externalModuleIndicator && file.externalModuleIndicator !== true) {
47137 return false;
47138 }
47139 if (!file.commonJsModuleIndicator) {
47140 file.commonJsModuleIndicator = node;
47141 if (!file.externalModuleIndicator) {
47142 bindSourceFileAsExternalModule();
47143 }
47144 }
47145 return true;
47146 }
47147 function bindObjectDefinePropertyExport(node) {
47148 if (!setCommonJsModuleIndicator(node)) {
47149 return;

Callers 4

bindCallExpressionFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…