@statoscope/webpack-model
Advanced tools
Comparing version
@@ -307,2 +307,5 @@ "use strict"; | ||
function resolveRawChunk(chunk, context) { | ||
if (chunk === null) { | ||
return null; | ||
} | ||
return context.rawIndexes.chunks.get(typeof chunk === 'string' || typeof chunk === 'number' ? chunk : chunk.id); | ||
@@ -309,0 +312,0 @@ } |
@@ -48,3 +48,6 @@ "use strict"; | ||
name: rawStatsFileDescriptor.name, | ||
version: rawStatsFileDescriptor.data.version || 'unknown', | ||
bundler: rawStatsFileDescriptor.data.rspackVersion ? 'rspack' : 'webpack', | ||
version: rawStatsFileDescriptor.data.rspackVersion || | ||
rawStatsFileDescriptor.data.version || | ||
'unknown', | ||
compilations: [], | ||
@@ -51,0 +54,0 @@ __statoscope: rawStatsFileDescriptor.data.__statoscope, |
{ | ||
"name": "@statoscope/webpack-model", | ||
"version": "5.28.3", | ||
"version": "5.29.0", | ||
"description": "This package contains helpers to process webpack stats", | ||
@@ -35,3 +35,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "99306ed39acbc6cb99687e170ead8fadf5456e38" | ||
"gitHead": "45146a6bfbfc72a097b57f7584506771219442aa" | ||
} |
@@ -162,2 +162,3 @@ import { ResolverFn } from '@statoscope/helpers/dist/entity-resolver'; | ||
name: string; | ||
bundler: 'rspack' | 'webpack'; | ||
version: string; | ||
@@ -164,0 +165,0 @@ compilations: NormalizedCompilation[]; |
@@ -85,2 +85,3 @@ import { StatsDescriptor } from '@statoscope/stats'; | ||
builtAt?: number; | ||
rspackVersion?: string; | ||
version?: string; | ||
@@ -87,0 +88,0 @@ name?: string; |
86552
0.31%1958
0.41%