@rsdoctor/graph 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -608,7 +608,7 @@ class Module {
|
|
|
608
608
|
layer: this.layer
|
|
609
609
|
} : {},
|
|
610
610
|
issuerPath: isBrief ? void 0 : this.issuerPath?.filter((issuer)=>issuer.moduleId).map((issuer)=>issuer.moduleId) || [],
|
|
611
|
-
bailoutReason:
|
|
611
|
+
bailoutReason: this.bailoutReason
|
|
612
612
|
};
|
|
613
613
|
return (this.meta.hasSetEsModuleStatement || this.meta.strictHarmonyModule) && (data.meta = {}, this.meta.hasSetEsModuleStatement && (data.meta.hasSetEsModuleStatement = !0), this.meta.strictHarmonyModule && (data.meta.strictHarmonyModule = !0)), this.isEntry && (data.isEntry = this.isEntry), this.modules.length > 0 && (data.modules = this.modules.map((item)=>item.id)), this.rootModule && (data.rootModule = this.rootModule.id), this.concatenationModules.length > 0 && (data.concatenationModules = this.concatenationModules.map((data)=>data.id)), data;
|
|
614
614
|
}
|
|
@@ -1395,7 +1395,7 @@ function getModuleGraphByStats({ modules, chunks }, root, chunkGraph) {
|
|
|
1395
1395
|
if (getCanSkip(normal)) continue;
|
|
1396
1396
|
allModules.push(normal);
|
|
1397
1397
|
let webpackId = normal.identifier, registeredModule = moduleGraph.getModuleByWebpackId(webpackId);
|
|
1398
|
-
if (normalModule = registeredModule || (moduleGraph.getModuleByWebpackId(webpackId) ?? new Module(webpackId, getGetModuleName(root, normal), 0 === normal.depth, types_namespaceObject.SDK.ModuleKind.Normal, normal.id ? String(normal.id) : void 0, normal.layer)), normal.optimizationBailout && normal.optimizationBailout.forEach((reason)=>normalModule.addBailoutReason(reason)), normal.issuerPath && normalModule.addIssuerPath(normal.issuerPath), normal.chunks?.length ? normal.chunks?.forEach((_chunkId)=>{
|
|
1398
|
+
if (normalModule = registeredModule || (moduleGraph.getModuleByWebpackId(webpackId) ?? new Module(webpackId, getGetModuleName(root, normal), 0 === normal.depth, types_namespaceObject.SDK.ModuleKind.Normal, normal.id ? String(normal.id) : void 0, normal.layer)), normal.optimizationBailout && normal.optimizationBailout.filter((reason)=>!reason.includes('ModuleConcatenation bailout')).forEach((reason)=>normalModule.addBailoutReason(reason)), normal.issuerPath && normalModule.addIssuerPath(normal.issuerPath), normal.chunks?.length ? normal.chunks?.forEach((_chunkId)=>{
|
|
1399
1399
|
let chunk = chunkGraph.getChunkById(String(_chunkId));
|
|
1400
1400
|
chunk && normalModule.addChunk(chunk);
|
|
1401
1401
|
}) : data.chunks?.forEach((_chunkId)=>{
|
package/dist/index.js
CHANGED
|
@@ -578,7 +578,7 @@ class Module {
|
|
|
578
578
|
layer: this.layer
|
|
579
579
|
} : {},
|
|
580
580
|
issuerPath: isBrief ? void 0 : this.issuerPath?.filter((issuer)=>issuer.moduleId).map((issuer)=>issuer.moduleId) || [],
|
|
581
|
-
bailoutReason:
|
|
581
|
+
bailoutReason: this.bailoutReason
|
|
582
582
|
};
|
|
583
583
|
return (this.meta.hasSetEsModuleStatement || this.meta.strictHarmonyModule) && (data.meta = {}, this.meta.hasSetEsModuleStatement && (data.meta.hasSetEsModuleStatement = !0), this.meta.strictHarmonyModule && (data.meta.strictHarmonyModule = !0)), this.isEntry && (data.isEntry = this.isEntry), this.modules.length > 0 && (data.modules = this.modules.map((item)=>item.id)), this.rootModule && (data.rootModule = this.rootModule.id), this.concatenationModules.length > 0 && (data.concatenationModules = this.concatenationModules.map((data)=>data.id)), data;
|
|
584
584
|
}
|
|
@@ -1353,7 +1353,7 @@ function getModuleGraphByStats({ modules, chunks }, root, chunkGraph) {
|
|
|
1353
1353
|
if (getCanSkip(normal)) continue;
|
|
1354
1354
|
allModules.push(normal);
|
|
1355
1355
|
let webpackId = normal.identifier, registeredModule = moduleGraph.getModuleByWebpackId(webpackId);
|
|
1356
|
-
if (normalModule = registeredModule || (moduleGraph.getModuleByWebpackId(webpackId) ?? new Module(webpackId, getGetModuleName(root, normal), 0 === normal.depth, SDK.ModuleKind.Normal, normal.id ? String(normal.id) : void 0, normal.layer)), normal.optimizationBailout && normal.optimizationBailout.forEach((reason)=>normalModule.addBailoutReason(reason)), normal.issuerPath && normalModule.addIssuerPath(normal.issuerPath), normal.chunks?.length ? normal.chunks?.forEach((_chunkId)=>{
|
|
1356
|
+
if (normalModule = registeredModule || (moduleGraph.getModuleByWebpackId(webpackId) ?? new Module(webpackId, getGetModuleName(root, normal), 0 === normal.depth, SDK.ModuleKind.Normal, normal.id ? String(normal.id) : void 0, normal.layer)), normal.optimizationBailout && normal.optimizationBailout.filter((reason)=>!reason.includes('ModuleConcatenation bailout')).forEach((reason)=>normalModule.addBailoutReason(reason)), normal.issuerPath && normalModule.addIssuerPath(normal.issuerPath), normal.chunks?.length ? normal.chunks?.forEach((_chunkId)=>{
|
|
1357
1357
|
let chunk = chunkGraph.getChunkById(String(_chunkId));
|
|
1358
1358
|
chunk && normalModule.addChunk(chunk);
|
|
1359
1359
|
}) : data.chunks?.forEach((_chunkId)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/graph",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/web-infra-dev/rsdoctor",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"es-toolkit": "^1.43.0",
|
|
26
26
|
"path-browserify": "1.0.1",
|
|
27
27
|
"source-map": "^0.7.6",
|
|
28
|
-
"@rsdoctor/types": "1.5.
|
|
29
|
-
"@rsdoctor/utils": "1.5.
|
|
28
|
+
"@rsdoctor/types": "1.5.1",
|
|
29
|
+
"@rsdoctor/utils": "1.5.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/body-parser": "1.19.6",
|