MCPcopy Index your code
hub / github.com/rollup/rollup / generateModuleGraph

Method generateModuleGraph

src/Graph.ts:150–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 };
149
150 private async generateModuleGraph(): Promise<void> {
151 ({ entryModules: this.entryModules, implicitEntryModules: this.implicitEntryModules } =
152 await this.moduleLoader.addEntryModules(normalizeEntryModules(this.options.input), true));
153 if (this.entryModules.length === 0) {
154 throw new Error('You must supply options.input to rollup');
155 }
156 for (const module of this.modulesById.values()) {
157 module.cacheInfoGetters();
158 if (module instanceof Module) {
159 this.modules.push(module);
160 } else {
161 this.externalModules.push(module);
162 }
163 }
164 }
165
166 private includeStatements(): void {
167 const entryModules = [...this.entryModules, ...this.implicitEntryModules];

Callers 1

buildMethod · 0.95

Calls 4

normalizeEntryModulesFunction · 0.85
addEntryModulesMethod · 0.80
pushMethod · 0.80
cacheInfoGettersMethod · 0.45

Tested by

no test coverage detected