ui: lazyload types

This commit is contained in:
undefined committed 2024-01-05 20:10:44 +08:00
1 parent a36ccdfd89
commit 891ddcc094
2 files changed
+4 -3

No files matched your search

@@ -32,7 +32,7 @@ const loaders = {
if (resource) setLocaleData(resource);
},
markdown: () => import('./languages/markdown'),
typescript: () => import('./languages/typescript'),
typescript: () => import('./languages/typescript').then((m) => m.loadTypes()),
yaml: () => import('./languages/yaml'),
external: async (monaco, feat) => {
for (const item of await getFeatures(`monaco-${feat}`)) {