@parcel/packager-react-static 2.13.4-canary.3403 → 2.13.4-canary.3410
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.
|
@@ -150,19 +150,21 @@ var _default = exports.default = new (_plugin().Packager)({
|
|
|
150
150
|
for (let b of bundleGraph.getEntryBundles()) {
|
|
151
151
|
let main = b.getMainEntry();
|
|
152
152
|
if (main && b.type === 'js' && b.needsStableName) {
|
|
153
|
+
let meta = pageMeta(main.meta);
|
|
153
154
|
pages.push({
|
|
154
155
|
url: (0, _utils().urlJoin)(b.target.publicUrl, b.name),
|
|
155
156
|
name: b.name,
|
|
156
|
-
meta
|
|
157
|
+
...meta
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
160
|
}
|
|
161
|
+
let meta = pageMeta((0, _nullthrows().default)(bundle.getMainEntry()).meta);
|
|
160
162
|
let props = {
|
|
161
163
|
pages,
|
|
162
164
|
currentPage: {
|
|
163
165
|
url: (0, _utils().urlJoin)(bundle.target.publicUrl, bundle.name),
|
|
164
166
|
name: bundle.name,
|
|
165
|
-
meta
|
|
167
|
+
...meta
|
|
166
168
|
}
|
|
167
169
|
};
|
|
168
170
|
let resources = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/packager-react-static",
|
|
3
|
-
"version": "2.13.4-canary.
|
|
3
|
+
"version": "2.13.4-canary.3410+9d4799570",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"source": "src/ReactStaticPackager.js",
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 16.0.0",
|
|
20
|
-
"parcel": "^2.0.0-canary.
|
|
20
|
+
"parcel": "^2.0.0-canary.1785+9d4799570"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@parcel/node-resolver-core": "3.4.4-canary.
|
|
24
|
-
"@parcel/plugin": "2.0.0-canary.
|
|
25
|
-
"@parcel/rust": "2.13.4-canary.
|
|
26
|
-
"@parcel/types": "2.0.0-canary.
|
|
27
|
-
"@parcel/utils": "2.0.0-canary.
|
|
23
|
+
"@parcel/node-resolver-core": "3.4.4-canary.3410+9d4799570",
|
|
24
|
+
"@parcel/plugin": "2.0.0-canary.1787+9d4799570",
|
|
25
|
+
"@parcel/rust": "2.13.4-canary.3410+9d4799570",
|
|
26
|
+
"@parcel/types": "2.0.0-canary.1787+9d4799570",
|
|
27
|
+
"@parcel/utils": "2.0.0-canary.1787+9d4799570",
|
|
28
28
|
"nullthrows": "^1.1.1",
|
|
29
29
|
"rsc-html-stream": "^0.0.4"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "9d4799570916170906aca646f5c55353f8e19fc5"
|
|
32
32
|
}
|
|
@@ -7,7 +7,6 @@ import type {
|
|
|
7
7
|
Dependency,
|
|
8
8
|
NamedBundle,
|
|
9
9
|
Meta,
|
|
10
|
-
JSONObject,
|
|
11
10
|
} from '@parcel/types';
|
|
12
11
|
import {blobToString, PromiseQueue, urlJoin} from '@parcel/utils';
|
|
13
12
|
import fs from 'fs';
|
|
@@ -25,7 +24,6 @@ import {AsyncLocalStorage} from 'node:async_hooks';
|
|
|
25
24
|
export interface Page {
|
|
26
25
|
url: string;
|
|
27
26
|
name: string;
|
|
28
|
-
meta: any;
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
export interface PageProps {
|
|
@@ -115,20 +113,22 @@ export default (new Packager({
|
|
|
115
113
|
for (let b of bundleGraph.getEntryBundles()) {
|
|
116
114
|
let main = b.getMainEntry();
|
|
117
115
|
if (main && b.type === 'js' && b.needsStableName) {
|
|
116
|
+
let meta = pageMeta(main.meta);
|
|
118
117
|
pages.push({
|
|
119
118
|
url: urlJoin(b.target.publicUrl, b.name),
|
|
120
119
|
name: b.name,
|
|
121
|
-
meta
|
|
120
|
+
...meta,
|
|
122
121
|
});
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
|
|
125
|
+
let meta = pageMeta(nullthrows(bundle.getMainEntry()).meta);
|
|
126
126
|
let props: PageProps = {
|
|
127
127
|
pages,
|
|
128
128
|
currentPage: {
|
|
129
129
|
url: urlJoin(bundle.target.publicUrl, bundle.name),
|
|
130
130
|
name: bundle.name,
|
|
131
|
-
meta
|
|
131
|
+
...meta,
|
|
132
132
|
},
|
|
133
133
|
};
|
|
134
134
|
|
|
@@ -504,7 +504,7 @@ function getSpecifier(dep: Dependency) {
|
|
|
504
504
|
return dep.specifier;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
-
function pageMeta(meta: Meta):
|
|
507
|
+
function pageMeta(meta: Meta): any {
|
|
508
508
|
if (
|
|
509
509
|
meta.ssgMeta &&
|
|
510
510
|
typeof meta?.ssgMeta === 'object' &&
|