From f47e6d2cb8b27d88083e08459763e8fdd4a56df9 Mon Sep 17 00:00:00 2001 From: Martin Fleck Date: Wed, 11 Dec 2024 15:22:40 +0100 Subject: [PATCH] Use import without deconstruction to ensure proper bundling --- packages/monaco/src/ivy-script-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/monaco/src/ivy-script-client.ts b/packages/monaco/src/ivy-script-client.ts index d23f66ac..8dc3b3e9 100644 --- a/packages/monaco/src/ivy-script-client.ts +++ b/packages/monaco/src/ivy-script-client.ts @@ -7,8 +7,8 @@ export namespace IvyScriptLanguage { export async function startClient(connection: Connection, isMonacoReady: Promise) { 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 }