require.context is Webpack-only. Vite uses import.meta.glob. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 lines
268 B
JavaScript
7 lines
268 B
JavaScript
import { startStimulusApp } from '@symfony/stimulus-bundle';
|
|
import { registerReactControllerComponents } from '@symfony/ux-react';
|
|
|
|
const app = startStimulusApp();
|
|
|
|
registerReactControllerComponents(import.meta.glob('./react/controllers/**/*.jsx', { eager: true }));
|