Skip to content

Commit ad87572

Browse files
authored
docs: Import .svelte.js files with explicit extension. (#14584)
1 parent 8433a71 commit ad87572

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

documentation/docs/06-runtime/01-stores.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const userState = $state({
4949
```svelte
5050
<!--- file: App.svelte --->
5151
<script>
52-
import { userState } from './state.svelte';
52+
import { userState } from './state.svelte.js';
5353
</script>
5454
5555
<p>User name: {userState.name}</p>

documentation/docs/06-runtime/02-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const myGlobalState = $state({
2222
```svelte
2323
<!--- file: App.svelte --->
2424
<script>
25-
import { myGlobalState } from './state.svelte';
25+
import { myGlobalState } from './state.svelte.js';
2626
// ...
2727
</script>
2828
```

0 commit comments

Comments
 (0)