Skip to content

Commit

Permalink
update deprecated globing mechanism (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald authored Sep 6, 2022
1 parent 2dff275 commit c43d299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Presets/vue-stubs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ app.component('example-component', ExampleComponent);
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/

// 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);
// });

Expand Down

0 comments on commit c43d299

Please sign in to comment.