File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/runtime/core/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export type CustomerLoader = (
31
31
32
32
export type AppInfo = interfaces . AppInfo & { domGetter : Element } ;
33
33
34
+ let appId = 0 ;
34
35
const __GARFISH_EXPORTS__ = '__GARFISH_EXPORTS__' ;
35
36
const __GARFISH_GLOBAL_ENV__ = '__GARFISH_GLOBAL_ENV__' ;
36
37
@@ -44,18 +45,19 @@ const __GARFISH_GLOBAL_ENV__ = '__GARFISH_GLOBAL_ENV__';
44
45
* 5. Trigger the destruction: Perform the destroy function of child application, and applies the child node is removed from the document flow.
45
46
*/
46
47
export class App {
48
+ public id = appId ++ ;
47
49
public display = false ;
48
50
public mounted = false ;
49
51
public esModule = false ;
50
52
public strictIsolation = false ;
51
53
public name : string ;
52
- public global : any = window ;
53
54
public isHtmlMode : boolean ;
55
+ public global : any = window ;
54
56
public appContainer : HTMLElement ;
55
- public sourceList : Array < { tagName : string ; url : string } > = [ ] ;
56
57
public cjsModules : Record < string , any > ;
57
58
public htmlNode : HTMLElement | ShadowRoot ;
58
59
public customExports : Record < string , any > = { } ; // If you don't want to use the CJS export, can use this
60
+ public sourceList : Array < { tagName : string ; url : string } > = [ ] ;
59
61
public appInfo : AppInfo ;
60
62
public hooks : interfaces . AppHooks ;
61
63
public provider : interfaces . Provider ;
You can’t perform that action at this time.
0 commit comments