File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
packages/runtime/core/src Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ let defaultConfig: interfaces.Options = {
40
40
beforeMount ( appInfo ) {
41
41
console . log ( 'beforeMount' , appInfo ) ;
42
42
} ,
43
+
44
+ customLoader ( ) { } ,
43
45
} ;
44
46
45
47
setTimeout ( ( ) => {
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ export class Garfish extends EventEmitter {
215
215
manager ,
216
216
resources ,
217
217
isHtmlMode ,
218
- this . options . customLoader ,
218
+ appInfo . customLoader ,
219
219
) ;
220
220
221
221
// The registration hook will automatically remove the duplication
Original file line number Diff line number Diff line change @@ -78,7 +78,13 @@ export namespace interfaces {
78
78
customLoader ?: CustomerLoader ;
79
79
}
80
80
81
- export type AppLifecycle = Pick < GlobalLifecycle , keyof AppHooks [ 'lifecycle' ] > ;
81
+ export type AppLifecycle = Pick <
82
+ GlobalLifecycle ,
83
+ keyof AppHooks [ 'lifecycle' ]
84
+ > & {
85
+ /** @deprecated */
86
+ customLoader ?: CustomerLoader ;
87
+ } ;
82
88
83
89
export type AppConfig = Pick <
84
90
Config ,
@@ -90,13 +96,14 @@ export namespace interfaces {
90
96
| 'insulationVariable'
91
97
> & {
92
98
name : string ;
93
- entry : string ;
99
+ entry ? : string ;
94
100
cache ?: boolean ;
95
101
nested ?: number ;
96
102
noCheckProvider ?: boolean ;
97
103
} ;
98
104
99
105
export interface Options extends Config , GlobalLifecycle { }
106
+
100
107
export interface AppInfo extends AppConfig , AppLifecycle { }
101
108
102
109
export interface Plugin extends Partial < PluginLifecycle > {
You can’t perform that action at this time.
0 commit comments