Skip to content

Commit e4b2331

Browse files
committed
bumping to latest stimulus-bridge
Removing auto-import and adding new lazy-controller-loader
1 parent 77b8eb6 commit e4b2331

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { startStimulusApp } from '@symfony/stimulus-bridge';
2-
import '@symfony/autoimport';
32

43
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
5-
export const app = startStimulusApp(require.context('./controllers', true, /\.(j|t)sx?$/));
4+
export const app = startStimulusApp(require.context(
5+
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6+
true, /\.(j|t)sx?$/
7+
));

symfony/webpack-encore-bundle/1.0/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"devDependencies": {
3-
"@symfony/stimulus-bridge": "^1.1.0",
3+
"@symfony/stimulus-bridge": "^2.0.0",
44
"@symfony/webpack-encore": "^1.0.0",
55
"core-js": "^3.0.0",
66
"regenerator-runtime": "^0.13.2",

0 commit comments

Comments
 (0)