Updated stimulus recipe

This commit is contained in:
Jan Böhmer 2025-11-30 15:07:27 +01:00
parent 52a9975769
commit 4750a50fb9
5 changed files with 10 additions and 8 deletions

10
assets/bootstrap.js vendored
View file

@ -1,10 +0,0 @@
import { startStimulusApp } from '@symfony/stimulus-bridge';
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.[jt]sx?$/
));
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);