@atlaspack/core 2.12.1-canary.3485 → 2.12.1-canary.3486
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/lib/BundleGraph.js +1 -1
- package/package.json +17 -17
- package/src/BundleGraph.js +3 -1
package/lib/BundleGraph.js
CHANGED
|
@@ -818,7 +818,7 @@ class BundleGraph {
|
|
|
818
818
|
}
|
|
819
819
|
isAssetReferenced(bundle, asset) {
|
|
820
820
|
// If the asset is available in multiple bundles in the same target, it's referenced.
|
|
821
|
-
if (this.getBundlesWithAsset(asset).filter(b => b.target.distDir === bundle.target.distDir).length > 1) {
|
|
821
|
+
if (this.getBundlesWithAsset(asset).filter(b => b.target.name === bundle.target.name && b.target.distDir === bundle.target.distDir).length > 1) {
|
|
822
822
|
return true;
|
|
823
823
|
}
|
|
824
824
|
let assetNodeId = (0, _nullthrows().default)(this._graph.getNodeIdByContentKey(asset.id));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/core",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3486+ed60801bc",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"check-ts": "tsc --noEmit index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@atlaspack/build-cache": "2.12.1-canary.
|
|
24
|
-
"@atlaspack/cache": "2.12.1-canary.
|
|
25
|
-
"@atlaspack/diagnostic": "2.12.1-canary.
|
|
26
|
-
"@atlaspack/events": "2.12.1-canary.
|
|
27
|
-
"@atlaspack/feature-flags": "2.12.1-canary.
|
|
28
|
-
"@atlaspack/fs": "2.12.1-canary.
|
|
29
|
-
"@atlaspack/graph": "3.2.1-canary.
|
|
30
|
-
"@atlaspack/logger": "2.12.1-canary.
|
|
31
|
-
"@atlaspack/package-manager": "2.12.1-canary.
|
|
32
|
-
"@atlaspack/plugin": "2.12.1-canary.
|
|
33
|
-
"@atlaspack/profiler": "2.12.1-canary.
|
|
34
|
-
"@atlaspack/rust": "2.12.1-canary.
|
|
35
|
-
"@atlaspack/types": "2.12.1-canary.
|
|
36
|
-
"@atlaspack/utils": "2.12.1-canary.
|
|
37
|
-
"@atlaspack/workers": "2.12.1-canary.
|
|
23
|
+
"@atlaspack/build-cache": "2.12.1-canary.3486+ed60801bc",
|
|
24
|
+
"@atlaspack/cache": "2.12.1-canary.3486+ed60801bc",
|
|
25
|
+
"@atlaspack/diagnostic": "2.12.1-canary.3486+ed60801bc",
|
|
26
|
+
"@atlaspack/events": "2.12.1-canary.3486+ed60801bc",
|
|
27
|
+
"@atlaspack/feature-flags": "2.12.1-canary.3486+ed60801bc",
|
|
28
|
+
"@atlaspack/fs": "2.12.1-canary.3486+ed60801bc",
|
|
29
|
+
"@atlaspack/graph": "3.2.1-canary.3486+ed60801bc",
|
|
30
|
+
"@atlaspack/logger": "2.12.1-canary.3486+ed60801bc",
|
|
31
|
+
"@atlaspack/package-manager": "2.12.1-canary.3486+ed60801bc",
|
|
32
|
+
"@atlaspack/plugin": "2.12.1-canary.3486+ed60801bc",
|
|
33
|
+
"@atlaspack/profiler": "2.12.1-canary.3486+ed60801bc",
|
|
34
|
+
"@atlaspack/rust": "2.12.1-canary.3486+ed60801bc",
|
|
35
|
+
"@atlaspack/types": "2.12.1-canary.3486+ed60801bc",
|
|
36
|
+
"@atlaspack/utils": "2.12.1-canary.3486+ed60801bc",
|
|
37
|
+
"@atlaspack/workers": "2.12.1-canary.3486+ed60801bc",
|
|
38
38
|
"@mischnic/json-sourcemap": "^0.1.0",
|
|
39
39
|
"@parcel/source-map": "^2.1.1",
|
|
40
40
|
"base-x": "^3.0.8",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"browser": {
|
|
66
66
|
"./src/serializerCore.js": "./src/serializerCore.browser.js"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "ed60801bcda8951391d16e375ecb0e33d0d5ad15"
|
|
69
69
|
}
|
package/src/BundleGraph.js
CHANGED
|
@@ -1277,7 +1277,9 @@ export default class BundleGraph {
|
|
|
1277
1277
|
// If the asset is available in multiple bundles in the same target, it's referenced.
|
|
1278
1278
|
if (
|
|
1279
1279
|
this.getBundlesWithAsset(asset).filter(
|
|
1280
|
-
(b) =>
|
|
1280
|
+
(b) =>
|
|
1281
|
+
b.target.name === bundle.target.name &&
|
|
1282
|
+
b.target.distDir === bundle.target.distDir,
|
|
1281
1283
|
).length > 1
|
|
1282
1284
|
) {
|
|
1283
1285
|
return true;
|