From 3af6ccf2fb4de1034955f0549a702d670dd27095 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 8 Oct 2025 16:39:11 +0200 Subject: [PATCH] Update integrate-esm.md typo switch ts languages to js --- docs/integrate-esm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/integrate-esm.md b/docs/integrate-esm.md index c745c6f8..2920f0d0 100644 --- a/docs/integrate-esm.md +++ b/docs/integrate-esm.md @@ -228,10 +228,10 @@ monaco.editor.create(document.getElementById('container'), { > you will encounter cross-origin errors. > > In this scenario, you can use a blob like this: -> ```ts +> ```js > self.MonacoEnvironment = { > getWorker(_, label) { -> function createBlobWorker(workerModule: any) { +> function createBlobWorker(workerModule) { > const code = workerModule.toString(); > const blob = new Blob([code], { type: 'application/javascript' }); > const blobUrl = URL.createObjectURL(blob);