Orginize
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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
|
||||
}
|
||||
Reference in New Issue
Block a user