app/frontend/admin/index.js in maglevcms-1.5.1 vs app/frontend/admin/index.js in maglevcms-1.6.0
- old
+ new
@@ -2,9 +2,9 @@
// Controller files must be named *_controller.js.
import { Application } from 'stimulus'
import { registerControllers } from 'stimulus-vite-helpers'
const application = Application.start()
-const controllers = import.meta.globEager('./**/*_controller.js')
+const controllers = import.meta.glob('./**/*_controller.js', { eager: true })
registerControllers(application, controllers)
window.stimulusApplication = application