From cfdc6b3e6be62773ffeb732ef3aef87463085f9e Mon Sep 17 00:00:00 2001 From: Patato <22197@satitpatumwan.ac.th> Date: Mon, 18 Nov 2024 03:58:09 +0700 Subject: [PATCH] chore: Update Svelte template to Svelte 5 (#1184) Co-authored-by: Aaron --- templates/svelte/src/entrypoints/popup/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/svelte/src/entrypoints/popup/main.ts b/templates/svelte/src/entrypoints/popup/main.ts index 7ab96ab23..65a15e296 100644 --- a/templates/svelte/src/entrypoints/popup/main.ts +++ b/templates/svelte/src/entrypoints/popup/main.ts @@ -1,7 +1,8 @@ -import './app.css'; +import { mount } from 'svelte'; import App from './App.svelte'; +import './app.css'; -const app = new App({ +const app = mount(App, { target: document.getElementById('app')!, });