From 1b7fc3287ab5cf9725a64f010453fe3f2066bb23 Mon Sep 17 00:00:00 2001 From: Adrien POLY Date: Sun, 4 Feb 2024 21:51:44 +0100 Subject: [PATCH] update glob --- app/javascript/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/index.js b/app/javascript/controllers/index.js index fa48c732a..75fdfa055 100644 --- a/app/javascript/controllers/index.js +++ b/app/javascript/controllers/index.js @@ -1,5 +1,5 @@ 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)