Further cleanup and fixing Wallet and GoogleAuth to the new Composer interface
This commit is contained in:
10
src/lib/core/componentLoader.ts
Normal file
10
src/lib/core/componentLoader.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import componentNames from 'virtual:components-list';
|
||||
|
||||
const components = {};
|
||||
|
||||
componentNames.forEach(path => {
|
||||
const name = path.split('/').pop(); // Extract just the file name from the path
|
||||
components[name] = () => import( /* @vite-ignore */ `/src/lib/components/${path}.svelte`);
|
||||
});
|
||||
|
||||
export default components;
|
Reference in New Issue
Block a user