@tramvai/module-render 2.72.5 → 2.73.1
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.
|
@@ -39,12 +39,12 @@ class PageBuilder {
|
|
|
39
39
|
const extractor = new ChunkExtractor({ stats, entrypoints: [] });
|
|
40
40
|
// first we render the application, because we need to extract information about the data used by the components
|
|
41
41
|
await this.renderApp(extractor);
|
|
42
|
+
// load information and dependency for the current bundle and page
|
|
43
|
+
await this.fetchChunksInfo(extractor);
|
|
42
44
|
await Promise.all(this.renderFlowAfter.map((callback) => callback().catch((error) => {
|
|
43
45
|
this.log.warn({ event: 'render-flow-after-error', callback, error });
|
|
44
46
|
})));
|
|
45
47
|
this.dehydrateState();
|
|
46
|
-
// load information and dependency for the current bundle and page
|
|
47
|
-
await this.fetchChunksInfo(extractor);
|
|
48
48
|
this.preloadBlock();
|
|
49
49
|
return this.generateHtml();
|
|
50
50
|
}
|
|
@@ -47,12 +47,12 @@ class PageBuilder {
|
|
|
47
47
|
const extractor = new server.ChunkExtractor({ stats, entrypoints: [] });
|
|
48
48
|
// first we render the application, because we need to extract information about the data used by the components
|
|
49
49
|
await this.renderApp(extractor);
|
|
50
|
+
// load information and dependency for the current bundle and page
|
|
51
|
+
await this.fetchChunksInfo(extractor);
|
|
50
52
|
await Promise.all(this.renderFlowAfter.map((callback) => callback().catch((error) => {
|
|
51
53
|
this.log.warn({ event: 'render-flow-after-error', callback, error });
|
|
52
54
|
})));
|
|
53
55
|
this.dehydrateState();
|
|
54
|
-
// load information and dependency for the current bundle and page
|
|
55
|
-
await this.fetchChunksInfo(extractor);
|
|
56
56
|
this.preloadBlock();
|
|
57
57
|
return this.generateHtml();
|
|
58
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-render",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"@tinkoff/htmlpagebuilder": "0.5.6",
|
|
26
26
|
"@tinkoff/layout-factory": "0.3.7",
|
|
27
27
|
"@tinkoff/url": "0.8.5",
|
|
28
|
-
"@tinkoff/user-agent": "0.4.
|
|
29
|
-
"@tramvai/module-client-hints": "2.
|
|
30
|
-
"@tramvai/module-router": "2.
|
|
31
|
-
"@tramvai/react": "2.
|
|
28
|
+
"@tinkoff/user-agent": "0.4.185",
|
|
29
|
+
"@tramvai/module-client-hints": "2.73.1",
|
|
30
|
+
"@tramvai/module-router": "2.73.1",
|
|
31
|
+
"@tramvai/react": "2.73.1",
|
|
32
32
|
"@tramvai/safe-strings": "0.5.7",
|
|
33
|
-
"@tramvai/tokens-render": "2.
|
|
34
|
-
"@tramvai/experiments": "2.
|
|
33
|
+
"@tramvai/tokens-render": "2.73.1",
|
|
34
|
+
"@tramvai/experiments": "2.73.1",
|
|
35
35
|
"@types/loadable__server": "^5.12.6",
|
|
36
36
|
"node-fetch": "^2.6.1"
|
|
37
37
|
},
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@tinkoff/dippy": "0.8.13",
|
|
40
40
|
"@tinkoff/utils": "^2.1.2",
|
|
41
41
|
"@tinkoff/react-hooks": "0.1.5",
|
|
42
|
-
"@tramvai/cli": "2.
|
|
43
|
-
"@tramvai/core": "2.
|
|
44
|
-
"@tramvai/module-common": "2.
|
|
45
|
-
"@tramvai/state": "2.
|
|
46
|
-
"@tramvai/test-helpers": "2.
|
|
47
|
-
"@tramvai/tokens-common": "2.
|
|
48
|
-
"@tramvai/tokens-router": "2.
|
|
49
|
-
"@tramvai/tokens-server-private": "2.
|
|
42
|
+
"@tramvai/cli": "2.73.1",
|
|
43
|
+
"@tramvai/core": "2.73.1",
|
|
44
|
+
"@tramvai/module-common": "2.73.1",
|
|
45
|
+
"@tramvai/state": "2.73.1",
|
|
46
|
+
"@tramvai/test-helpers": "2.73.1",
|
|
47
|
+
"@tramvai/tokens-common": "2.73.1",
|
|
48
|
+
"@tramvai/tokens-router": "2.73.1",
|
|
49
|
+
"@tramvai/tokens-server-private": "2.73.1",
|
|
50
50
|
"express": "^4.17.1",
|
|
51
51
|
"prop-types": "^15.6.2",
|
|
52
52
|
"react": ">=16.14.0",
|