Created
May 12, 2020 03:28
-
-
Save amazzalel-habib/0a6f6d623cf6a8a994f67019e1b67900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as worker from 'monaco-editor-core/esm/vs/editor/editor.worker'; | |
import { TodoLangWorker } from './todoLangWorker'; | |
self.onmessage = () => { | |
worker.initialize((ctx) => { | |
return new TodoLangWorker(ctx) | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment