fix: use import.meta.glob instead of require.context for Vite compatibility
require.context is Webpack-only. Vite uses import.meta.glob. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d590120306
commit
783a8492e9
1 changed files with 1 additions and 1 deletions
2
assets/bootstrap.js
vendored
2
assets/bootstrap.js
vendored
|
|
@ -3,4 +3,4 @@ import { registerReactControllerComponents } from '@symfony/ux-react';
|
|||
|
||||
const app = startStimulusApp();
|
||||
|
||||
registerReactControllerComponents(require.context('./react/controllers', true, /\.(j|t)sx?$/));
|
||||
registerReactControllerComponents(import.meta.glob('./react/controllers/**/*.jsx', { eager: true }));
|
||||
|
|
|
|||
Loading…
Reference in a new issue