@rsdoctor/graph 1.5.1 → 1.5.2
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1170,7 +1170,7 @@ class PackageGraph {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
setDuplicates(module, pkg) {
|
|
1172
1172
|
let assetsList = [], chunksList = module.getChunks();
|
|
1173
|
-
chunksList.forEach((chunk)=>assetsList.push(...chunk.getAssets().filter((asset)=>asset.path.endsWith('.js')))), chunksList.length > 1 && pkg.setDuplicates({
|
|
1173
|
+
chunksList.forEach((chunk)=>assetsList.push(...chunk.getAssets().filter((asset)=>asset.path.endsWith('.js') || asset.path.endsWith('.bundle')))), chunksList.length > 1 && pkg.setDuplicates({
|
|
1174
1174
|
module: {
|
|
1175
1175
|
id: module.id,
|
|
1176
1176
|
path: module.path
|
package/dist/index.js
CHANGED
|
@@ -1136,7 +1136,7 @@ class PackageGraph {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
setDuplicates(module, pkg) {
|
|
1138
1138
|
let assetsList = [], chunksList = module.getChunks();
|
|
1139
|
-
chunksList.forEach((chunk)=>assetsList.push(...chunk.getAssets().filter((asset)=>asset.path.endsWith('.js')))), chunksList.length > 1 && pkg.setDuplicates({
|
|
1139
|
+
chunksList.forEach((chunk)=>assetsList.push(...chunk.getAssets().filter((asset)=>asset.path.endsWith('.js') || asset.path.endsWith('.bundle')))), chunksList.length > 1 && pkg.setDuplicates({
|
|
1140
1140
|
module: {
|
|
1141
1141
|
id: module.id,
|
|
1142
1142
|
path: module.path
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdoctor/graph",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
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.2",
|
|
29
|
+
"@rsdoctor/utils": "1.5.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/body-parser": "1.19.6",
|