MCPcopy
hub / github.com/rollup/rollup / getResolvedIdWithDefaults

Method getResolvedIdWithDefaults

src/ModuleLoader.ts:629–647  ·  view source on GitHub ↗
(
		resolvedId: NormalizedResolveIdWithoutDefaults | null,
		attributes: Record<string, string>
	)

Source from the content-addressed store, hash-verified

627 }
628
629 private getResolvedIdWithDefaults(
630 resolvedId: NormalizedResolveIdWithoutDefaults | null,
631 attributes: Record<string, string>
632 ): ResolvedId | null {
633 if (!resolvedId) {
634 return null;
635 }
636 const external = resolvedId.external || false;
637 return {
638 attributes: resolvedId.attributes || attributes,
639 external,
640 id: resolvedId.id,
641 meta: resolvedId.meta || {},
642 moduleSideEffects:
643 resolvedId.moduleSideEffects ?? this.hasModuleSideEffects(resolvedId.id, !!external),
644 resolvedBy: resolvedId.resolvedBy ?? 'rollup',
645 syntheticNamedExports: resolvedId.syntheticNamedExports ?? false
646 };
647 }
648
649 private async handleExistingModule(module: Module, isEntry: boolean, isPreload: PreloadType) {
650 const loadPromise = this.moduleLoadPromises.get(module)!;

Callers 4

preloadModuleMethod · 0.95
ModuleLoaderClass · 0.95
loadEntryModuleMethod · 0.95
resolveDynamicImportMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected