mirror of
https://github.com/symfony/recipes.git
synced 2026-09-18 02:26:31 +03:00
bumping to latest stimulus-bridge
Removing auto-import and adding new lazy-controller-loader
This commit is contained in:
+4
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user