diff --git a/src/components/monaco-editor.tsx b/src/components/monaco-editor.tsx index 61a2a62..8b9e27e 100644 --- a/src/components/monaco-editor.tsx +++ b/src/components/monaco-editor.tsx @@ -33,7 +33,7 @@ export function MonacoEditor() { .map(([key, value]) => value.theme ?? key); LANGUAGE_NAMES.forEach((l) => monaco.languages.register({ id: l })); - + const highlighter = await createHighlighter({ themes: [currentTheme, ...restThemes], langs: LANGUAGES, diff --git a/tsconfig.json b/tsconfig.json index 54d1169..d2787bd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -19,9 +23,18 @@ } ], "paths": { - "~/*": ["./src/*"] + "~/*": [ + "./src/*" + ] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }