Website/app/frontend/packages/stimulus.ts

9 lines
413 B
TypeScript
Raw Normal View History

2024-07-14 14:26:52 +00:00
import {startStimulusApp} from '@symfony/stimulus-bridge';
2024-07-12 22:56:04 +00:00
// 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);