added dynamical import of components via vite

This commit is contained in:
Samuel Andert
2023-07-22 09:29:40 +02:00
parent 01c742e6ce
commit 1ba7a9a28b
7 changed files with 53 additions and 69 deletions

View File

@ -1,5 +1,5 @@
<script>
import LitStatus from '$lib/LitStatus.svelte';
import LitStatus from '$lib/components/LitStatus.svelte';
import AuthSign from '$lib/AuthSig.svelte';
import Wallet from '$lib/Wallet.svelte';
import Send from '$lib/Send.svelte';
@ -14,12 +14,17 @@
{
id: 2,
componentName: 'Composite',
name: 'Nested Composite 1',
name: 'Nested Composite',
components: [
{
id: 3,
componentName: 'LitStatus',
name: 'Leaf 2'
name: 'LitStatus'
},
{
id: 4,
componentName: 'MessageInput',
name: 'MessageInput'
}
]
}