diff --git a/src/frontend/SvelteViewEngine.ts b/src/frontend/SvelteViewEngine.ts index 0ce432f..f8cbf12 100644 --- a/src/frontend/SvelteViewEngine.ts +++ b/src/frontend/SvelteViewEngine.ts @@ -317,6 +317,7 @@ export default class SvelteViewEngine extends ViewEngine { }); const locals = this.getGlobals(); + delete require.cache[path.resolve(file)]; return requireFromString(svelteSsr.js.code, file).default.render({ swaf: (key: string, args?: unknown[]) => { if (!args) return locals[key]; diff --git a/views/home.svelte b/views/home.svelte index f0647e9..90d702e 100644 --- a/views/home.svelte +++ b/views/home.svelte @@ -24,7 +24,11 @@ } - + + +

BONJOUR lol

+
+

Hello {count}!

diff --git a/views/layout.svelte b/views/layout.svelte index c97cf66..873748f 100644 --- a/views/layout.svelte +++ b/views/layout.svelte @@ -4,6 +4,12 @@ export let refresh_after = undefined; + + @@ -21,3 +27,8 @@ {/if} + +
+ hello + +