Optimize bundle size + chunked builds + JIT loading

* Replaced AJV with other JSON schema library
* Turndown and Vim mode (very large) now only loaded when used
* Chunked builds with ESBuild
This commit is contained in:
Zef Hemel
2026-03-11 10:04:13 +01:00
parent 81408ed5cf
commit a080ee3b15
13 changed files with 352 additions and 400 deletions
+12
View File
@@ -0,0 +1,12 @@
let vimModule: typeof import("@replit/codemirror-vim") | null = null;
export async function loadVim() {
if (!vimModule) {
vimModule = await import("@replit/codemirror-vim");
}
return vimModule;
}
export function getVimModule() {
return vimModule;
}