Skip to content

Commit 5be0a7a

Browse files
authored
fix: regex svelte to match receipe
1 parent eedb10e commit 5be0a7a

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, /\.(ts|js|svelte)$/i));
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)