core: add provideModule and injectUI API

This commit is contained in:
undefined committed 2022-09-23 01:36:12 +08:00
1 parent 672c553f4c
commit 28f03dbcbd
18 files changed
+211 -97

No files matched your search

+6
View File
@@ -19,6 +19,12 @@ if (!global.Hydro) {
script: {},
// @ts-ignore
lib: {},
module: new Proxy({} as any, {
get(self, key) {
if (!self[key]) self[key] = {};
return self[key];
},
}),
// @ts-ignore
ui: {
template: {},