File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/runtime/core/src Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ export class App {
224
224
this . mounting = true ;
225
225
try {
226
226
// add container and compile js with cjs
227
- const asyncJsProcess = this . compileAndRenderContainer ( ) ;
227
+ const asyncJsProcess = await this . compileAndRenderContainer ( ) ;
228
228
229
229
// Good provider is set at compile time
230
230
const provider = await this . getProvider ( ) ;
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ export function GarfishPerformance() {
10
10
name : 'performance' ,
11
11
async beforeLoad ( appInfo ) {
12
12
if ( ! subAppMap [ appInfo . name ] ) {
13
+ let appDomGetter = appInfo . domGetter ;
14
+ if ( typeof appInfo . domGetter === 'function' ) {
15
+ appDomGetter = await appInfo . domGetter ( ) ;
16
+ }
13
17
// 运营平台子应用跟节点 id 为 'master-app'
14
18
subAppMap [ appInfo . name ] = new SubAppObserver ( {
15
- subAppRootSelector : appInfo . domGetter as Element ,
19
+ subAppRootSelector : appDomGetter as Element ,
16
20
} ) ;
17
21
}
18
22
subAppMap [ appInfo . name ] . subAppBeforeLoad ( appInfo . entry ) ;
You can’t perform that action at this time.
0 commit comments