Skip to content

Commit

Permalink
Use import without deconstruction to ensure proper bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-fleck-at authored and ivy-lli committed Jan 3, 2025
1 parent cf5b3a9 commit f47e6d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/monaco/src/ivy-script-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export namespace IvyScriptLanguage {

export async function startClient(connection: Connection, isMonacoReady: Promise<any>) {
await isMonacoReady;
const { MonacoLanguageClient } = await import('monaco-languageclient');
const client = new MonacoLanguageClient({
const monacoLanguageClient = await import('monaco-languageclient');
const client = new monacoLanguageClient.MonacoLanguageClient({
name: 'IvyScript Language Client',
clientOptions: { documentSelector: [{ language: 'ivyScript' }, { language: 'ivyMacro' }] },
connectionProvider: { get: async () => connection }
Expand Down

0 comments on commit f47e6d2

Please sign in to comment.