MCPcopy
hub / github.com/rollup/rollup / includeAllExports

Method includeAllExports

src/Module.ts:770–782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768 }
769
770 includeAllExports(): void {
771 if (this.allExportsIncluded) return;
772 this.allExportsIncluded = true;
773 this.includeModuleInExecution();
774 const inclusionContext = createInclusionContext();
775 for (const variable of this.getExportedVariablesByName().values()) {
776 this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
777 variable.deoptimizePath(UNKNOWN_PATH);
778 if (variable instanceof ExternalVariable) {
779 variable.module.reexported = true;
780 }
781 }
782 }
783
784 includeAllInBundle(): void {
785 this.ast!.include(createInclusionContext(), true);

Callers 5

includeAllInBundleMethod · 0.95
includeStatementsMethod · 0.80
includeMemberPathMethod · 0.80
includeMethod · 0.80
includeNodeMethod · 0.80

Calls 5

includeVariableMethod · 0.95
createInclusionContextFunction · 0.90
deoptimizePathMethod · 0.65

Tested by

no test coverage detected