File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ const getEndpointFromType = (type: string) => {
65
65
return {
66
66
webpack : process . env . WEBPACK_ENDPOINT || 'http://compilation-metrics/webpack' ,
67
67
vite : process . env . VITE_ENDPOINT || 'http://compilation-metrics/vite' ,
68
+ vitehmr : process . env . VITE_ENDPOINT || 'http://compilation-metrics/vite' ,
68
69
rsbuild : process . env . WEBPACK_ENDPOINT || 'http://compilation-metrics/webpack' ,
69
70
} [ type ] ;
70
71
} ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export interface ViteBundleStats {
49
49
}
50
50
51
51
export interface ViteBuildData extends CommonMetadata {
52
- type : string ;
52
+ type : 'vite' | 'vitehmr' ;
53
53
viteVersion : string | null ;
54
54
bundleStats ?: ViteBundleStats ;
55
55
file : string | null ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export function viteBuildStatsPlugin(
96
96
97
97
const metricsData : ViteBuildData = {
98
98
...getCommonMetadata ( totalTime , customIdentifier ) ,
99
- type : 'vite-hmr ' ,
99
+ type : 'vitehmr ' ,
100
100
viteVersion : rollupVersion ?? null ,
101
101
bundleStats : {
102
102
bootstrapChunkSizeBytes : undefined ,
You can’t perform that action at this time.
0 commit comments