From c43d29941ee8f41547572968123eadbd81392841 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Wed, 7 Sep 2022 00:48:07 +1000 Subject: [PATCH] update deprecated globing mechanism (#236) --- src/Presets/vue-stubs/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Presets/vue-stubs/app.js b/src/Presets/vue-stubs/app.js index d007f50..4158f48 100644 --- a/src/Presets/vue-stubs/app.js +++ b/src/Presets/vue-stubs/app.js @@ -26,7 +26,7 @@ app.component('example-component', ExampleComponent); * Eg. ./components/ExampleComponent.vue -> */ -// Object.entries(import.meta.globEager('./**/*.vue')).forEach(([path, definition]) => { +// Object.entries(import.meta.glob('./**/*.vue', { eager: true })).forEach(([path, definition]) => { // app.component(path.split('/').pop().replace(/\.\w+$/, ''), definition.default); // });