@statoscope/webpack-model
Advanced tools
Comparing version 5.22.0 to 5.22.1-alpha.0
@@ -312,2 +312,8 @@ "use strict"; | ||
} | ||
if (chunk.sizes) { | ||
const keys = Object.keys(chunk.sizes); | ||
if (keys.length === 1 && keys[0] === 'runtime') { | ||
chunk.isRuntime = true; | ||
} | ||
} | ||
if (chunk.children) { | ||
@@ -314,0 +320,0 @@ normalizedChunk.children = chunk.children |
@@ -356,3 +356,3 @@ "use strict"; | ||
entrypoint_getChunks(entrypoint) { | ||
return context.query(`data.chunks + data.chunks..children`, entrypoint); | ||
return context.query(`data.chunks + data.chunks.[not isRuntime]..children`, entrypoint); | ||
}, | ||
@@ -372,9 +372,9 @@ entrypoint_getInitialChunks(entrypoint) { | ||
entrypoint_getAssets(entrypoint) { | ||
return context.query(`(data.chunks + data.chunks..children).files`, entrypoint); | ||
return context.query(`(data.chunks + data.chunks.[not isRuntime]..children).files`, entrypoint); | ||
}, | ||
entrypoint_getInitialAssets(entrypoint) { | ||
return context.query(`(data.chunks + data.chunks..children).[initial].files`, entrypoint); | ||
return context.query(`(data.chunks + data.chunks.[not isRuntime]..children).[initial].files`, entrypoint); | ||
}, | ||
entrypoint_getAsyncAssets(entrypoint) { | ||
return context.query(`(data.chunks + data.chunks..children).[not initial].files`, entrypoint); | ||
return context.query(`(data.chunks + data.chunks.[not isRuntime]..children).[not initial].files`, entrypoint); | ||
}, | ||
@@ -381,0 +381,0 @@ }; |
{ | ||
"name": "@statoscope/webpack-model", | ||
"version": "5.22.0", | ||
"version": "5.22.1-alpha.0", | ||
"description": "This package contains helpers to process webpack stats", | ||
@@ -37,3 +37,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "0d2e09d892c1bb6e019778e270079f99cb80d332" | ||
"gitHead": "fe6ea2b69d7c476112bcc9d69e88ee3dfc0df842" | ||
} |
@@ -34,2 +34,3 @@ import { ResolverFn } from '@statoscope/helpers/dist/entity-resolver'; | ||
siblings: NormalizedChunk[]; | ||
isRuntime?: boolean; | ||
}; | ||
@@ -36,0 +37,0 @@ export type NormalizedEntrypointItem = { name: string; data: NormalizedEntrypoint }; |
@@ -55,2 +55,3 @@ import { StatsDescriptor } from '@statoscope/stats'; | ||
reason?: string | null; | ||
sizes?: Record<string, number | undefined>; | ||
children?: Array<ChunkID | Chunk>; | ||
@@ -57,0 +58,0 @@ siblings?: Array<ChunkID | Chunk>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88852
2081
1