import { worker } from 'monaco-editor' ; import * as EditorWorker from 'monaco-editor/esm/vs/editor/editor.worker.js' ; import { FLinkSQLWorker , ICreateData } from './flinkSQLWorker' ; self . onmessage = ( e ) => { EditorWorker . initialize ( ( ctx , createData ) => { return new FLinkSQLWorker ( ctx , createData ) ; } ) ; } ;