Skip to content

Commit

Permalink
fix: crepe codemirror wrong dependency (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone authored Sep 10, 2024
1 parent 425c038 commit 2da95f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-dolphins-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@milkdown/crepe": patch
---

The default nord theme has unacceptable dependency @babel/runtime
2 changes: 1 addition & 1 deletion packages/crepe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.16.0",
"@milkdown/kit": "workspace:*",
"@uiw/codemirror-theme-nord": "^4.22.1",
"@codemirror/theme-one-dark": "^6.1.2",
"atomico": "^1.75.1",
"clsx": "^2.0.0",
"codemirror": "^6.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/crepe/src/feature/code-mirror/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const defineFeature: DefineFeature<CodeMirrorFeatureConfig> = (editor, co
languages = langList
}
if (!theme) {
const { nord } = await import('@uiw/codemirror-theme-nord')
theme = nord
const { oneDark } = await import('@codemirror/theme-one-dark')
theme = oneDark
}
ctx.update(codeBlockConfig.key, defaultConfig => ({
extensions: [
Expand Down
6 changes: 3 additions & 3 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 2da95f9

Please sign in to comment.