bumping to latest stimulus-bridge

Removing auto-import and adding new lazy-controller-loader
This commit is contained in:
Ryan Weaver
2021-01-28 19:50:21 -05:00
parent 77b8eb60c0
commit e4b2331c57
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
import { startStimulusApp } from '@symfony/stimulus-bridge';
import '@symfony/autoimport';
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context('./controllers', true, /\.(j|t)sx?$/));
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true, /\.(j|t)sx?$/
));
@@ -1,6 +1,6 @@
{
"devDependencies": {
"@symfony/stimulus-bridge": "^1.1.0",
"@symfony/stimulus-bridge": "^2.0.0",
"@symfony/webpack-encore": "^1.0.0",
"core-js": "^3.0.0",
"regenerator-runtime": "^0.13.2",