2022-11-05 17:18:04 +01:00
|
|
|
import { startStimulusApp } from '@symfony/stimulus-bridge'
|
2022-10-28 18:48:25 +02:00
|
|
|
|
|
|
|
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
|
|
|
|
export const app = startStimulusApp(require.context(
|
2022-11-05 17:18:04 +01:00
|
|
|
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
|
|
|
|
true,
|
|
|
|
/\.[jt]sx?$/
|
2022-11-03 18:53:41 +01:00
|
|
|
))
|
2022-10-28 18:48:25 +02:00
|
|
|
|
|
|
|
// register any custom, 3rd party controllers here
|
|
|
|
// app.register('some_controller_name', SomeImportedController);
|