@atlaspack/reporter-conditional-manifest 2.12.1-canary.3549 → 2.12.1-canary.3552
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.
|
@@ -48,7 +48,9 @@ async function report({
|
|
|
48
48
|
} = await (0, _Config.getConfig)(options);
|
|
49
49
|
for (const target of targets) {
|
|
50
50
|
const conditionalManifestFilename = (0, _path().join)(target.distDir, filename);
|
|
51
|
-
const conditionalManifest = JSON.stringify(
|
|
51
|
+
const conditionalManifest = JSON.stringify(
|
|
52
|
+
// If there's no content, send an empty manifest so we can still map from it safely
|
|
53
|
+
manifest[target.name] ?? {}, null, 2);
|
|
52
54
|
await options.outputFS.writeFile(conditionalManifestFilename, conditionalManifest, {
|
|
53
55
|
mode: 0o666
|
|
54
56
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/reporter-conditional-manifest",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3552+d02f73b63",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"main": "lib/ConditionalManifestReporter.js",
|
|
13
13
|
"source": "src/ConditionalManifestReporter.js",
|
|
14
14
|
"engines": {
|
|
15
|
-
"atlaspack": "2.12.1-canary.
|
|
15
|
+
"atlaspack": "2.12.1-canary.3552+d02f73b63",
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/plugin": "2.12.1-canary.
|
|
19
|
+
"@atlaspack/plugin": "2.12.1-canary.3552+d02f73b63",
|
|
20
20
|
"nullthrows": "^1.1.1"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "d02f73b6354b81f42133225feeb56481cbbdec3b"
|
|
23
23
|
}
|
|
@@ -52,9 +52,9 @@ async function report({
|
|
|
52
52
|
|
|
53
53
|
for (const target of targets) {
|
|
54
54
|
const conditionalManifestFilename = join(target.distDir, filename);
|
|
55
|
-
|
|
56
55
|
const conditionalManifest = JSON.stringify(
|
|
57
|
-
manifest
|
|
56
|
+
// If there's no content, send an empty manifest so we can still map from it safely
|
|
57
|
+
manifest[target.name] ?? {},
|
|
58
58
|
null,
|
|
59
59
|
2,
|
|
60
60
|
);
|