@atlaspack/bundler-default 3.0.6-alshintegrationtestslib.0 → 3.0.6-dev.0
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/idealGraph.js +10 -12
- package/package.json +8 -8
package/lib/idealGraph.js
CHANGED
|
@@ -109,7 +109,15 @@ function createIdealGraph(assetGraph, config, entries, logger) {
|
|
|
109
109
|
}
|
|
110
110
|
let assets = [];
|
|
111
111
|
let assetToIndex = new Map();
|
|
112
|
-
|
|
112
|
+
//Manual is a map of the user-given name to the bundle node Id that corresponds to ALL the assets that match any glob in that user-specified array
|
|
113
|
+
let manualSharedMap = new Map();
|
|
114
|
+
// May need a map to be able to look up NON- bundle root assets which need special case instructions
|
|
115
|
+
// Use this when placing assets into bundles, to avoid duplication
|
|
116
|
+
let manualAssetToBundle = new Map();
|
|
117
|
+
let {
|
|
118
|
+
manualAssetToConfig,
|
|
119
|
+
constantModuleToMSB
|
|
120
|
+
} = function makeManualAssetToConfigLookup() {
|
|
113
121
|
let manualAssetToConfig = new Map();
|
|
114
122
|
let constantModuleToMSB = new (_utils().DefaultMap)(() => []);
|
|
115
123
|
if (config.manualSharedBundles.length === 0) {
|
|
@@ -173,17 +181,7 @@ function createIdealGraph(assetGraph, config, entries, logger) {
|
|
|
173
181
|
manualAssetToConfig,
|
|
174
182
|
constantModuleToMSB
|
|
175
183
|
};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
//Manual is a map of the user-given name to the bundle node Id that corresponds to ALL the assets that match any glob in that user-specified array
|
|
179
|
-
let manualSharedMap = new Map();
|
|
180
|
-
// May need a map to be able to look up NON- bundle root assets which need special case instructions
|
|
181
|
-
// Use this when placing assets into bundles, to avoid duplication
|
|
182
|
-
let manualAssetToBundle = new Map();
|
|
183
|
-
let {
|
|
184
|
-
manualAssetToConfig,
|
|
185
|
-
constantModuleToMSB
|
|
186
|
-
} = makeManualAssetToConfigLookup();
|
|
184
|
+
}();
|
|
187
185
|
let manualBundleToInternalizedAsset = new (_utils().DefaultMap)(() => []);
|
|
188
186
|
let mergeSourceBundleLookup = new Map();
|
|
189
187
|
let mergeSourceBundleAssets = new Set((_config$sharedBundleM = config.sharedBundleMerge) === null || _config$sharedBundleM === void 0 ? void 0 : _config$sharedBundleM.flatMap(c => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/bundler-default",
|
|
3
|
-
"version": "3.0.6-
|
|
3
|
+
"version": "3.0.6-dev.0",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.14.2-
|
|
20
|
-
"@atlaspack/feature-flags": "2.18.3-
|
|
21
|
-
"@atlaspack/graph": "3.5.5-
|
|
22
|
-
"@atlaspack/plugin": "2.14.15-
|
|
23
|
-
"@atlaspack/rust": "3.3.6-
|
|
24
|
-
"@atlaspack/utils": "2.15.3-
|
|
19
|
+
"@atlaspack/diagnostic": "2.14.2-dev.0",
|
|
20
|
+
"@atlaspack/feature-flags": "2.18.3-dev.0",
|
|
21
|
+
"@atlaspack/graph": "3.5.5-dev.0",
|
|
22
|
+
"@atlaspack/plugin": "2.14.15-dev.0",
|
|
23
|
+
"@atlaspack/rust": "3.3.6-dev.0",
|
|
24
|
+
"@atlaspack/utils": "2.15.3-dev.0",
|
|
25
25
|
"many-keys-map": "^1.0.3",
|
|
26
26
|
"nullthrows": "^1.1.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "6ce3565fe038caf52c09fad4e48175829b174571"
|
|
29
29
|
}
|