Skip to content

Commit c757d4c

Browse files
committed
Update Symfony Flex recipe for symfony/stimulus-bundle
1 parent 0993da9 commit c757d4c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

assets/stimulus_bootstrap.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { startStimulusApp } from '@symfony/stimulus-bridge';
22

33
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
4-
export const app = startStimulusApp(require.context(
4+
export const app = startStimulusApp(import.meta.webpackContext(
55
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6-
true,
7-
/\.[jt]sx?$/
6+
{
7+
recursive: true,
8+
regExp: /\.[jt]sx?$/,
9+
},
810
));
911

1012
// register any custom, 3rd party controllers here

symfony.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)