Files
bare-operating-system/packages/bare-os-booter/lib/ctx/bare-os-ctx-pear-host.js
T
2026-08-18 18:11:28 -04:00

22 lines
783 B
JavaScript

/**
* Static Pear-tier host imports for ctx.pear on Bare/Pear.
*
* Pear's module graph must see these as static imports (see hdms-manager.js:
* dynamic `import("pkg")` from `pear://` URLs fails with "Cannot find referrer").
* Keep package names in sync with `pearEntries` in bare-module-manifest.json.
*
* Pear-runtime-only packages (pear-bundle, pear-ref) live in
* bare-os-ctx-pear-host-pear-only.js and load only under `pear://`.
*/
import pearBuild from 'pear-build'
import bareBundleCompile from 'bare-bundle-compile'
import bareBundleEvaluate from 'bare-bundle-evaluate'
/** @type {Record<string, unknown>} */
export const pearCtxHostByPackage = {
'pear-build': pearBuild,
'bare-bundle-compile': bareBundleCompile,
'bare-bundle-evaluate': bareBundleEvaluate
}