Update integrate-esm.md

typo switch ts languages to js
This commit is contained in:
Max 2025-10-08 16:39:11 +02:00 committed by GitHub
parent 9e80719ed7
commit 3af6ccf2fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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