mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: lazyload types
This commit is contained in:
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}`)) {
|
||||
|
||||
Reference in new issue
Block a user