Skip to content

Commit 6e5ddee

Browse files
shleeableYour Name
andauthored
[Productifiation] Bugfix - [plugin vite:reporter] was giving errors on build (#433)
* Update app.js * prettier --------- Co-authored-by: Your Name <you@example.com>
1 parent 696640a commit 6e5ddee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

resources/js/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ const app = createApp(App)
2525
const head = createHead()
2626
const pinia = createPinia()
2727

28-
Object.entries(import.meta.glob('./**/*.vue', { eager: true })).forEach(([path, definition]) => {
28+
// 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]) => {
2932
app.component(
3033
path
3134
.split('/')

0 commit comments

Comments
 (0)