File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
packages/runtime/core/src/module Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -550,17 +550,15 @@ export class App {
550
550
}
551
551
552
552
// If you have customLoader, the dojo.provide by user
553
- if ( this . customLoader ) {
554
- const customLoader = await this . customLoader ;
555
- const hookRes = customLoader ?.( provider , appInfo , basename ) ;
556
- if ( hookRes ) {
557
- const { mount, unmount } = hookRes || ( { } as any ) ;
558
- if ( typeof mount === 'function' && typeof unmount === 'function' ) {
559
- mount . _custom = true ;
560
- unmount . _custom = true ;
561
- provider . render = mount ;
562
- provider . destroy = unmount ;
563
- }
553
+ const customLoader = await this . customLoader ;
554
+ const hookRes = customLoader ?.( provider , appInfo , basename ) ;
555
+ if ( hookRes ) {
556
+ const { mount, unmount } = hookRes || ( { } as any ) ;
557
+ if ( typeof mount === 'function' && typeof unmount === 'function' ) {
558
+ mount . _custom = true ;
559
+ unmount . _custom = true ;
560
+ provider . render = mount ;
561
+ provider . destroy = unmount ;
564
562
}
565
563
}
566
564
You can’t perform that action at this time.
0 commit comments