Skip to content

Commit deef402

Browse files
authored
chore(dashboard): revert monaco bundling change (#4478)
1 parent ba3692f commit deef402

4 files changed

Lines changed: 1 addition & 38 deletions

File tree

frontend/app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"js-confetti": "^0.13.1",
7070
"lodash": "^4.18.1",
7171
"lucide-react": "^1.8.0",
72-
"monaco-editor": "^0.55.1",
7372
"monaco-themes": "^0.4.8",
7473
"ms": "^2.1.3",
7574
"posthog-js": "^1.369.2",

frontend/app/pnpm-lock.yaml

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/app/src/components/v1/ui/code-editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import CopyToClipboard from './copy-to-clipboard';
22
import { useTheme } from '@/components/hooks/use-theme';
3-
import '@/lib/monaco-environment';
43
import { cn } from '@/lib/utils';
54
import Editor, { Monaco, OnMount } from '@monaco-editor/react';
65
import { useCallback, useEffect, useId, useRef } from 'react';
@@ -50,7 +49,7 @@ export function CodeEditor({
5049
const existingSchemas = existingOptions.schemas || [];
5150

5251
const otherSchemas = existingSchemas.filter(
53-
(s: (typeof existingSchemas)[number]) =>
52+
(s: { fileMatch: string | string[] }) =>
5453
!s.fileMatch?.includes(modelPath),
5554
);
5655

frontend/app/src/lib/monaco-environment.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)