File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ module.exports = function () {
16
16
Request : globalThis . Request ,
17
17
fetch : globalThis . fetch ,
18
18
btoa,
19
+ performance : globalThis . performance ,
19
20
} ) ;
20
21
} ,
21
22
} ;
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export async function makeFastBootIndexRunner(
36
36
getRunnerOpts,
37
37
_logDefinitions : ( globalThis as any ) . _logDefinitions ,
38
38
jsdom : new JSDOM ( '' ) ,
39
+ performance : globalThis . performance ,
39
40
} ) ;
40
41
} ,
41
42
} ) as FastBootInstance ;
@@ -53,6 +54,7 @@ export async function makeFastBootIndexRunner(
53
54
getRunnerOpts,
54
55
_logDefinitions : ( globalThis as any ) . _logDefinitions ,
55
56
jsdom : new JSDOM ( '' ) ,
57
+ performance : globalThis . performance ,
56
58
} ) ;
57
59
} ,
58
60
) ) ;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import TransformModulesAmdPlugin from 'transform-modules-amd-plugin';
2
2
import { transformSync } from '@babel/core' ;
3
3
import { Deferred } from './deferred' ;
4
4
import { trimExecutableExtension , logger } from './index' ;
5
+ import { time } from './helpers/time' ;
5
6
6
7
import { CardError } from './error' ;
7
8
import flatMap from 'lodash/flatMap' ;
@@ -278,7 +279,7 @@ export class Loader {
278
279
279
280
outer_switch: switch ( module ?. state ) {
280
281
case undefined :
281
- await this . fetchModule ( resolvedURL ) ;
282
+ await time ( 'fetchModule' , this . fetchModule ( resolvedURL ) ) ;
282
283
break ;
283
284
case 'fetching' :
284
285
await module . deferred . promise ;
You can’t perform that action at this time.
0 commit comments