diff --git a/src/components/CodeMirror/index.tsx b/src/components/CodeMirror/index.tsx index 2ac8562..7f80d83 100644 --- a/src/components/CodeMirror/index.tsx +++ b/src/components/CodeMirror/index.tsx @@ -1,9 +1,9 @@ import { EditorView, minimalSetup } from 'codemirror' -import { Compartment, EditorState } from '@codemirror/state' +import { Compartment } from '@codemirror/state' import { markdown } from '@codemirror/lang-markdown' import { languages } from '@codemirror/language-data' import { watch } from 'solid-uses' -import { defaultKeymap, indentMore, indentWithTab } from '@codemirror/commands' +import { indentWithTab } from '@codemirror/commands' import { keymap } from '@codemirror/view' import { basicDark } from './theme-dark' import { basicLight } from './theme-light' diff --git a/vite.config.ts b/vite.config.ts index d3b4f3c..89dddb8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,6 @@ import path from 'node:path' import { defineConfig } from 'vite' import solidPlugin from 'vite-plugin-solid' -import UnoCSS from 'unocss/vite' -import { presetUno } from 'unocss' import AutoImport from 'unplugin-auto-import/vite' export default defineConfig({