@statoscope/webpack-model
Advanced tools
Comparing version 5.25.1 to 5.26.2
@@ -103,3 +103,3 @@ "use strict"; | ||
entrypoints: (0, indexer_1.default)((item) => item.name), | ||
modules: (0, indexer_1.default)((item) => rawIndexes.getModuleIdentifier(item.identifier), null, { | ||
modules: (0, indexer_1.default)((item) => item.identifier, null, { | ||
idModifier: moduleIdModifier, | ||
@@ -113,19 +113,6 @@ }), | ||
entrypoints: (0, indexer_1.default)((item) => item.name), | ||
modules: (0, indexer_1.default)((item) => rawIndexes.getModuleIdentifier(item.identifier), null, { | ||
modules: (0, indexer_1.default)((item) => item.identifier, null, { | ||
idModifier: moduleIdModifier, | ||
}), | ||
chunkAssets: new Map(), | ||
longModulesIds: new Map(), | ||
getModuleIdentifier(identifier) { | ||
if (identifier.length >= 300) { | ||
let shortId = this.longModulesIds.get(identifier); | ||
if (shortId) { | ||
return shortId; | ||
} | ||
shortId = 'long_module_id_' + (0, md5_1.default)(identifier); | ||
this.longModulesIds.set(identifier, shortId); | ||
return shortId; | ||
} | ||
return identifier; | ||
}, | ||
}; | ||
@@ -146,3 +133,2 @@ const resolvers = { | ||
for (const module of (0, collector_1.collectRawModules)(compilation)) { | ||
module.identifier = rawIndexes.getModuleIdentifier(module.identifier); | ||
processingContext.rawIndexes.modules.add(module); | ||
@@ -284,3 +270,2 @@ } | ||
for (const item of innerModules.values()) { | ||
item.identifier = context.rawIndexes.getModuleIdentifier(item.identifier); | ||
newInnerModules.push(context.rawIndexes.modules.get(item.identifier)); | ||
@@ -287,0 +272,0 @@ (_d = item.chunks) !== null && _d !== void 0 ? _d : (item.chunks = []); |
{ | ||
"name": "@statoscope/webpack-model", | ||
"version": "5.25.1", | ||
"version": "5.26.2", | ||
"description": "This package contains helpers to process webpack stats", | ||
@@ -36,3 +36,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "b86badb119c486c3e0f4fe4c8c233e61fd2b133b" | ||
"gitHead": "228b7f1d677df062c35d8fd72e87b1d67ef4d562" | ||
} |
@@ -15,3 +15,2 @@ import { ResolverFn } from '@statoscope/helpers/dist/entity-resolver'; | ||
import RawReason = Webpack.RawReason; | ||
import ModuleID = Webpack.ModuleID; | ||
@@ -123,4 +122,2 @@ export type CompilationResolvers = { | ||
chunkAssets: Map<ChunkID, Set<RawAsset>>; | ||
longModulesIds: Map<ModuleID, string>; | ||
getModuleIdentifier(module: string): string; | ||
entrypoints: IndexAPI<string, EntrypointItem>; | ||
@@ -127,0 +124,0 @@ }; |
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
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
85123
1917