Skip to content

Commit

Permalink
perf: perf monaco-editor languages file
Browse files Browse the repository at this point in the history
  • Loading branch information
rookie-luochao committed Jan 22, 2024
1 parent eee05a5 commit 0147160
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/monaco-editor/JSONInput.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Editor, loader } from "@monaco-editor/react";
import * as monaco from "monaco-editor";
import "monaco-editor/esm/vs/editor/editor.all.js";
import * as monaco from "monaco-editor/esm/vs/editor/editor.api";
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
import "monaco-editor/esm/vs/language/json/monaco.contribution";
import { ISchema } from "../../openapi/type";

self.MonacoEnvironment = {
Expand Down

0 comments on commit 0147160

Please sign in to comment.