Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit efdf79f

Browse files
committed
refactor(client): circular dependency causing test failure
1 parent 9418055 commit efdf79f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/client/src/components/app_context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import froca from "../services/froca.js";
2-
import bundleService from "../services/bundle.js";
32
import RootCommandExecutor from "./root_command_executor.js";
43
import Entrypoints, { type SqlExecuteResults } from "./entrypoints.js";
54
import options from "../services/options.js";
@@ -470,6 +469,7 @@ export class AppContext extends Component {
470469

471470
this.tabManager.loadTabs();
472471

472+
const bundleService = (await import("../services/bundle.js")).default;
473473
setTimeout(() => bundleService.executeStartupBundles(), 2000);
474474
}
475475

apps/client/src/services/script_context.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import FrontendScriptApi, { type Entity } from "./frontend_script_api.js";
1+
import type { Entity } from "./frontend_script_api.js";
22
import utils from "./utils.js";
33
import froca from "./froca.js";
44

@@ -14,6 +14,8 @@ async function ScriptContext(startNoteId: string, allNoteIds: string[], originEn
1414
throw new Error(`Could not find start note ${startNoteId}.`);
1515
}
1616

17+
const FrontendScriptApi = (await import("./frontend_script_api.js")).default;
18+
1719
return {
1820
modules: modules,
1921
notes: utils.toObject(allNotes, (note) => [note.noteId, note]),

0 commit comments

Comments
 (0)