import gather from '@/util/gather.js'; const Gathered = gather( import.meta.glob('./*.js', {eager: true, import: 'default'}), ); const Components = {}; for (const componentName in Gathered) { Components[componentName] = class Named extends Gathered[componentName] { static componentName = componentName; }; } export default Components;