@atlaspack/namer-default 2.12.1-dev.3443 → 2.12.1-dev.3478
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/package.json +5 -5
- package/src/DefaultNamer.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/namer-default",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3478+5fd2da535",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"source": "src/DefaultNamer.js",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">= 16.0.0",
|
|
16
|
-
"parcel": "^2.12.1-dev.
|
|
16
|
+
"parcel": "^2.12.1-dev.3478+5fd2da535"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.12.1-dev.
|
|
20
|
-
"@atlaspack/plugin": "2.12.1-dev.
|
|
19
|
+
"@atlaspack/diagnostic": "2.12.1-dev.3478+5fd2da535",
|
|
20
|
+
"@atlaspack/plugin": "2.12.1-dev.3478+5fd2da535",
|
|
21
21
|
"nullthrows": "^1.1.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "5fd2da535ecbe096d57e03aec15e80bb1d7601f7"
|
|
24
24
|
}
|
package/src/DefaultNamer.js
CHANGED
|
@@ -26,7 +26,7 @@ export default (new Namer({
|
|
|
26
26
|
|
|
27
27
|
if (bundle.needsStableName) {
|
|
28
28
|
let entryBundlesOfType = bundleGroupBundles.filter(
|
|
29
|
-
b => b.needsStableName && b.type === bundle.type,
|
|
29
|
+
(b) => b.needsStableName && b.type === bundle.type,
|
|
30
30
|
);
|
|
31
31
|
assert(
|
|
32
32
|
entryBundlesOfType.length === 1,
|
|
@@ -36,8 +36,8 @@ export default (new Namer({
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
let mainBundle = nullthrows(
|
|
39
|
-
bundleGroupBundles.find(b =>
|
|
40
|
-
b.getEntryAssets().some(a => a.id === bundleGroup.entryAssetId),
|
|
39
|
+
bundleGroupBundles.find((b) =>
|
|
40
|
+
b.getEntryAssets().some((a) => a.id === bundleGroup.entryAssetId),
|
|
41
41
|
),
|
|
42
42
|
);
|
|
43
43
|
|
|
@@ -111,7 +111,7 @@ function nameFromContent(
|
|
|
111
111
|
entryRoot: FilePath,
|
|
112
112
|
): string {
|
|
113
113
|
let entryFilePath = nullthrows(
|
|
114
|
-
bundle.getEntryAssets().find(a => a.id === entryAssetId),
|
|
114
|
+
bundle.getEntryAssets().find((a) => a.id === entryAssetId),
|
|
115
115
|
).filePath;
|
|
116
116
|
let name = basenameWithoutExtension(entryFilePath);
|
|
117
117
|
|