/**
* Bundles Monaco with the application instead of the default CDN loader, so
* ori keeps working without internet access. Imported only by MonacoViewer,
* which is itself lazy-loaded: none of this weight reaches the initial
* bundle.
*/import{loader}from"@monaco-editor/react";import*asmonacofrom"monaco-editor";importeditorWorkerfrom"monaco-editor/editor/editor.worker.js?worker";importcssWorkerfrom"monaco-editor/language/css/css.worker.js?worker";importhtmlWorkerfrom"monaco-editor/language/html/html.worker.js?worker";importjsonWorkerfrom"monaco-editor/language/json/json.worker.js?worker";importtsWorkerfrom"monaco-editor/language/typescript/ts.worker.js?worker";self.MonacoEnvironment={getWorker(_workerId: string,label: string){switch(label){case"json":returnnewjsonWorker();case"css":case"scss":case"less":returnnewcssWorker();case"html":case"handlebars":case"razor":returnnewhtmlWorker();case"typescript":case"javascript":returnnewtsWorker();default:returnneweditorWorker();}},};loader.config({monaco});
One first-party cookie so a repeat visit isn't counted twice. No cross-site tracking, nothing stored until you accept. Cookie Policy.