I would like to ask you a question about updating a simple example from version 2 to version 3.
This example of svelte v2 async component loading works (https://codesandbox.io/s/0ooo3z8nqp), but this one written for v3 doesn't (https://codesandbox.io/s/615zv3xp33).
Any clue? Thanks!
Update: My question was about converting the following piece of code from Svelte V2 to V3.
<script>
export default {
components: {},
data() {
return {
ChatBox: null
};
},
methods: {
async loadChatbox() {
const { default: ChatBox } = await import("./Chatbox.html");
this.set({ ChatBox });
}
}
};
</script>