Skip to content

Instantly share code, notes, and snippets.

@amazzalel-habib
Created May 12, 2020 03:28
Show Gist options
  • Save amazzalel-habib/0a6f6d623cf6a8a994f67019e1b67900 to your computer and use it in GitHub Desktop.
Save amazzalel-habib/0a6f6d623cf6a8a994f67019e1b67900 to your computer and use it in GitHub Desktop.
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