MCPcopy
hub / github.com/rollup/rollup / getResolveStaticDependencyPromises

Method getResolveStaticDependencyPromises

src/ModuleLoader.ts:604–627  ·  view source on GitHub ↗
(module: Module)

Source from the content-addressed store, hash-verified

602 }
603
604 private getResolveStaticDependencyPromises(module: Module): ResolveStaticDependencyPromise[] {
605 return Array.from(
606 module.sourcesWithAttributes,
607 async ([source, attributes]) =>
608 [
609 source,
610 (module.resolvedIds[source] =
611 module.resolvedIds[source] ||
612 this.handleInvalidResolvedId(
613 await this.resolveId(
614 source,
615 module.id,
616 EMPTY_OBJECT,
617 false,
618 attributes,
619 module.info.attributes
620 ),
621 source,
622 module.id,
623 attributes
624 ))
625 ] as const
626 );
627 }
628
629 private getResolvedIdWithDefaults(
630 resolvedId: NormalizedResolveIdWithoutDefaults | null,

Callers 1

fetchModuleMethod · 0.95

Calls 1

Tested by

no test coverage detected