Skip to content

Commit

Permalink
fix: deps optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 27, 2024
1 parent 070fadc commit 6ede668
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 107 deletions.
1 change: 1 addition & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"recordrtc": "^5.6.2",
"shiki": "^1.1.7",
"shiki-magic-move": "^0.1.0",
"typescript": "^5.3.3",
"unocss": "^0.58.5",
"vue": "^3.4.20",
"vue-router": "^4.3.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/client/setup/codemirror.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Ref, WritableComputedRef } from 'vue'
import { onClickOutside } from '@vueuse/core'
import { watch } from 'vue'
import { fromTextArea } from 'codemirror'
import Codemirror from 'codemirror'
import 'codemirror/mode/javascript/javascript'
import 'codemirror/mode/css/css'
import 'codemirror/mode/markdown/markdown'
Expand All @@ -15,7 +15,7 @@ export async function useCodeMirror(
input: Ref<string> | WritableComputedRef<string>,
options: CodeMirror.EditorConfiguration = {},
) {
const cm = fromTextArea(
const cm = Codemirror.fromTextArea(
textarea.value!,
{
theme: 'vars',
Expand Down
118 changes: 13 additions & 105 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6ede668

Please sign in to comment.