( resolvedId: NormalizedResolveIdWithoutDefaults | null, attributes: Record<string, string> )
| 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)!; |
no outgoing calls
no test coverage detected