SvelteViewEngine: fix stores file path

This commit is contained in:
Alice Gaudon 2021-11-20 16:18:06 +01:00
parent 2f2e1f51b8
commit e188458f9c

View File

@ -295,7 +295,7 @@ export default class SvelteViewEngine extends ViewEngine {
}); });
// Load locals into locals store // 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 localsModule = await import(localsModulePath);
const locals = this.getGlobals().get(); const locals = this.getGlobals().get();
const localMap = this.compileBackendCalls(backendCalls, locals, true); const localMap = this.compileBackendCalls(backendCalls, locals, true);