Skip to content

Commit f0c5fea

Browse files
committed
minor #987 Update index.rst : adding svelte to regex (youassi)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- Update index.rst : adding svelte to regex | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | fix doc : adding svelte to regex | License | MIT Commits ------- 3683425 Update index.rst : adding svelte to regex
2 parents 2dd64b9 + 3683425 commit f0c5fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Svelte/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ code to your ``assets/app.js`` file:
6060
// assets/app.js
6161
import { registerSvelteControllerComponents } from '@symfony/ux-svelte';
6262
63-
registerSvelteControllerComponents(require.context('./svelte/controllers', true, /\\.(j|t)sx?$/));
63+
registerSvelteControllerComponents(require.context('./svelte/controllers', true, /\.svelte$/));
6464
6565
This will load all Svelte components located in the ``assets/svelte/controllers``
6666
directory. These are known as **Svelte controller components**: top-level

0 commit comments

Comments
 (0)