We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 696640a commit 6e5ddeeCopy full SHA for 6e5ddee
1 file changed
resources/js/app.js
@@ -25,7 +25,10 @@ const app = createApp(App)
25
const head = createHead()
26
const pinia = createPinia()
27
28
-Object.entries(import.meta.glob('./**/*.vue', { eager: true })).forEach(([path, definition]) => {
+// Register global components (excluding pages and layouts)
29
+Object.entries(
30
+ import.meta.glob(['./**/*.vue', '!./pages/**/*.vue', '!./layouts/**/*.vue'], { eager: true })
31
+).forEach(([path, definition]) => {
32
app.component(
33
path
34
.split('/')
0 commit comments