pkgManager
pkgManager(
opts?):Extension
Defined in: packages/core/src/presets/pkg-manager.ts:24
Create the package manager extension with pkg bin and optional HTTP registry mounts.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Remarks
Section titled “Remarks”Every URL in sources is a trusted code origin. Packages fetched from these registries
are evaluated in the host JavaScript context via new Function() — the same trust
contract as npm install. Trust is established at configuration time by the caller;
only pass sources from registries you trust.
The importEsm capability is optional at build time — the pkg bin will be
overridden at boot time with the platform-specific implementation from
PlatformCapabilities. If provided, it’s used directly (e.g., for testing).