mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-27 23:59:20 -05:00
refac
This commit is contained in:
1 parent
5140da6eb9
commit
d99ec1c02c
135 files changed
+606
-1867
No files matched your search
@@ -57,10 +57,7 @@ const EXT_OVERRIDE: Record<string, string> = {
|
||||
jsonl: 'jsonl'
|
||||
};
|
||||
|
||||
// Common extensions that exactly match their Shiki language ID.
|
||||
// This replaces the runtime `bundledLanguages` import from shiki, which
|
||||
// pulled ~5-10MB of JavaScript into the initial page load just so
|
||||
// isCodeFile() could check extension support.
|
||||
// Keep extension IDs local to avoid loading Shiki's full language bundle just to recognize files.
|
||||
const KNOWN_LANG_IDS = new Set([
|
||||
'ada',
|
||||
'awk',
|
||||
|
||||
Reference in new issue
Block a user