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);