import 'regenerator-runtime/runtime' ; import * as worker from 'monaco-editor/esm/vs/editor/editor.worker' ; import { XJsonWorker } from './xjson_worker' ; self . onmessage = ( ) => { worker . initialize ( ( ctx , createData ) => { return new XJsonWorker ( ctx ) ; } ) ; } ;