Skip to content

Commit

Permalink
Account for changes in effekt/619 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-studios authored Oct 18, 2024
1 parent f36e07e commit b6f6d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/effekt-language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let loadedModules: any = {
export function load(path: string) {
const mod = loadedModules[path] || { module: null, timestamp: 0 };
loadedModules[path] = mod;
const fullpath = "out/" + path;
const fullpath = path;
const lastModified = Effekt.lastModified(fullpath);
if (lastModified > mod.timestamp) {
const contents = Effekt.readFile(fullpath)
Expand All @@ -69,5 +69,5 @@ export function evaluate(content: string) {
loadedModules = {};
write("interactive.effekt", content)
const mainFile = Effekt.compileFile("interactive.effekt")
return load(mainFile.replace(/^(out\/)/,"")).main().run()
return load(mainFile).main()
}

0 comments on commit b6f6d71

Please sign in to comment.