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);