-<script>
- export async function load(ctx) {
- let id = ctx.page.params.id
- return { props: { id }}
- }
+<script context="module">
+ export const load = ({
+ page: {
+ params: { id }
+ }
+ }) => ({ props: { id } });
+</script>
- import Author from '$components/author/author.svelte';
+<script>
+ import Author from '$/components/author/author.svelte';
</script>
-<Author/>
+<Author />