MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / getFeatures

Function getFeatures

packages/ui-default/lazyload.ts:40–47  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

38
39export { load };
40export async function getFeatures(name: string) {
41 const legacy = Object.keys(window.externalModules).filter((i) => i === name || i.startsWith(`${name}@`))
42 .map((i) => window.externalModules[i]);
43 const c = Object.keys(features).filter((i) => i === name || i.startsWith(`${name}@`))
44 .map((i) => features[i]);
45 console.log('query features for:', name, 'legacy:', legacy, 'selected:', c, 'all:', features);
46 return [...c, ...legacy];
47}
48
49export const loaded = [];
50export async function loadFeatures(name: string, ...args: any[]) {

Callers 3

loader.tsFile · 0.90
loadFunction · 0.90
loadFeaturesFunction · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected