mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 19:01:30 +08:00
chore(code): use proper JSON extension
This commit is contained in:
parent
9e5f2bf8c8
commit
7fda7051f2
@ -23,6 +23,7 @@
|
||||
"@codemirror/lang-css": "6.3.1",
|
||||
"@codemirror/lang-html": "6.4.9",
|
||||
"@codemirror/lang-javascript": "6.2.3",
|
||||
"@codemirror/lang-json": "6.0.1",
|
||||
"@codemirror/lang-markdown": "6.3.2",
|
||||
"@codemirror/lang-php": "6.0.1",
|
||||
"@codemirror/lang-vue": "0.1.3",
|
||||
|
@ -24,7 +24,7 @@ const byMimeType: Record<string, (() => Promise<StreamParser<unknown> | Language
|
||||
"application/edn": async () => (await import('@codemirror/legacy-modes/mode/clojure')).clojure,
|
||||
"application/javascript;env=backend": async () => buildJavaScript("application/javascript;env=backend"),
|
||||
"application/javascript;env=frontend": async () => buildJavaScript("application/javascript;env=frontend"),
|
||||
"application/json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).json,
|
||||
"application/json": async () => ((await import('@codemirror/lang-json')).json()),
|
||||
"application/ld+json": async () => (await import('@codemirror/legacy-modes/mode/javascript')).jsonld,
|
||||
"application/mbox": async () => (await import('@codemirror/legacy-modes/mode/mbox')).mbox,
|
||||
"application/n-triples": async () => (await import('@codemirror/legacy-modes/mode/ntriples')).ntriples,
|
||||
|
581
pnpm-lock.yaml
generated
581
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user