Skip to content

Commit f4d9ecb

Browse files
committed
fix vite loading error
1 parent a72e657 commit f4d9ecb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/javascript/controllers/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { application } from './application'
22
import { registerControllers } from 'stimulus-vite-helpers'
33

4-
const controllers = import.meta.globEager('./**/*_controller.js')
4+
const controllers = import.meta.glob('./**/*_controller.js', { eager: true })
5+
56
registerControllers(application, controllers)

0 commit comments

Comments
 (0)