/** * Monaco with its editor features and the syntax colours of its languages, without the language services, so the * editor worker is the only worker; the Shell page's editor imports this module on demand. */ import * as monaco from 'monaco-editor/editor' import 'monaco-editor/features/register.all' import 'monaco-editor/languages/definitions/register.all' import EditorWorker from 'monaco-editor/editor/editor.worker?worker' self.MonacoEnvironment = { getWorker: () => new EditorWorker(), } export default monaco