From e188458f9c6d653021b187e3c71aed9a0949557f Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sat, 20 Nov 2021 16:18:06 +0100 Subject: [PATCH] SvelteViewEngine: fix stores file path --- src/frontend/SvelteViewEngine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/SvelteViewEngine.ts b/src/frontend/SvelteViewEngine.ts index 7da5d71..58bda91 100644 --- a/src/frontend/SvelteViewEngine.ts +++ b/src/frontend/SvelteViewEngine.ts @@ -295,7 +295,7 @@ export default class SvelteViewEngine extends ViewEngine { }); // Load locals into locals store - const localsModulePath = "../../intermediates/assets/ts/stores.js"; + const localsModulePath = path.resolve(this.targetDir, "../ts/stores.js"); const localsModule = await import(localsModulePath); const locals = this.getGlobals().get(); const localMap = this.compileBackendCalls(backendCalls, locals, true);