import { boot } from "quasar/wrappers"; const components = import.meta.glob("src/components/global/**/*.vue", { eager: true, }); export default boot(async ({ app }) => { for (const path in components) { const mod = components[path]; const componentName = path .split("/") .pop() .replace(/\.\w+$/, ""); app.component(componentName, mod.default); } });