Skip to content

Commit

Permalink
fix vite loading error
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jun 2, 2024
1 parent a72e657 commit f4d9ecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/javascript/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { application } from './application'
import { registerControllers } from 'stimulus-vite-helpers'

const controllers = import.meta.globEager('./**/*_controller.js')
const controllers = import.meta.glob('./**/*_controller.js', { eager: true })

registerControllers(application, controllers)

0 comments on commit f4d9ecb

Please sign in to comment.