(name: string)
| 38 | |
| 39 | export { load }; |
| 40 | export 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 | |
| 49 | export const loaded = []; |
| 50 | export async function loadFeatures(name: string, ...args: any[]) { |
no test coverage detected