js editor + fix js runner

This commit is contained in:
Sirttas
2026-06-08 08:27:42 +02:00
parent a201a95756
commit c444f51423
5 changed files with 79 additions and 8 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import * as monaco from 'monaco-editor';
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker';
import {onBeforeUnmount, onMounted, ref, watch} from 'vue';
import {fetchScriptDefinitions} from '@/mammon';
import {fetchScriptDefinitions} from './rules';
(self as unknown as { MonacoEnvironment: { getWorker(workerId: string, label: string): Worker } }).MonacoEnvironment = {
getWorker(_workerId: string, label: string) {