chore(code): use CSS plugin

This commit is contained in:
Elian Doran
2025-05-11 13:56:34 +03:00
parent 06e1144498
commit c09d3ae5e0
3 changed files with 17 additions and 60 deletions

View File

@@ -20,6 +20,7 @@
},
"dependencies": {
"@codemirror/commands": "6.8.1",
"@codemirror/lang-css": "6.3.1",
"@codemirror/lang-html": "6.4.9",
"@codemirror/lang-markdown": "6.3.2",
"@codemirror/lang-php": "6.0.1",

View File

@@ -27,7 +27,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
"message/http": async () => (await import('@codemirror/legacy-modes/mode/http')).http,
"text/apl": async () => (await import('@codemirror/legacy-modes/mode/apl')).apl,
"text/coffeescript": async () => (await import('@codemirror/legacy-modes/mode/coffeescript')).coffeeScript,
"text/css": async () => (await import('@codemirror/legacy-modes/mode/css')).css,
"text/css": async () => (await import('@codemirror/lang-css')).css(),
"text/html": async () => (await import('@codemirror/lang-html')).html(),
"text/jinja2": async () => (await import('@codemirror/legacy-modes/mode/jinja2')).jinja2,
"text/jsx": null,