@tramvai/module-render 2.130.10 → 2.132.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.
|
@@ -16,7 +16,7 @@ const flushFiles = (chunks, webpackStats, { ignoreDependencies = false, } = {})
|
|
|
16
16
|
// что при повторных вызовах flushChunks вызовет дублирование подключения manifest.js
|
|
17
17
|
// из-за чего приложение может запускаться несколько раз
|
|
18
18
|
// без поля namedChunkGroups flushChunks вернет только сами ассеты для чанков, без зависимостей
|
|
19
|
-
const { assetsByChunkName, namedChunkGroups } = webpackStats;
|
|
19
|
+
const { assetsByChunkName, namedChunkGroups, chunks: allChunks } = webpackStats;
|
|
20
20
|
const resolvedChunks = [];
|
|
21
21
|
for (const chunk of chunks) {
|
|
22
22
|
if (!ignoreDependencies && (namedChunkGroups === null || namedChunkGroups === void 0 ? void 0 : namedChunkGroups[chunk])) {
|
|
@@ -26,7 +26,14 @@ const flushFiles = (chunks, webpackStats, { ignoreDependencies = false, } = {})
|
|
|
26
26
|
resolvedChunks.push(chunk);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
const files = flatten(uniq(resolvedChunks).map((chunk) =>
|
|
29
|
+
const files = flatten(uniq(resolvedChunks).map((chunk) => {
|
|
30
|
+
let assetFiles = assetsByChunkName[chunk];
|
|
31
|
+
if (!assetFiles && allChunks) {
|
|
32
|
+
const chunkById = allChunks.find((c) => c.id === chunk);
|
|
33
|
+
assetFiles = chunkById === null || chunkById === void 0 ? void 0 : chunkById.files;
|
|
34
|
+
}
|
|
35
|
+
return assetFiles;
|
|
36
|
+
}));
|
|
30
37
|
return getFilesByType(files);
|
|
31
38
|
};
|
|
32
39
|
|
|
@@ -25,7 +25,7 @@ const flushFiles = (chunks, webpackStats, { ignoreDependencies = false, } = {})
|
|
|
25
25
|
// что при повторных вызовах flushChunks вызовет дублирование подключения manifest.js
|
|
26
26
|
// из-за чего приложение может запускаться несколько раз
|
|
27
27
|
// без поля namedChunkGroups flushChunks вернет только сами ассеты для чанков, без зависимостей
|
|
28
|
-
const { assetsByChunkName, namedChunkGroups } = webpackStats;
|
|
28
|
+
const { assetsByChunkName, namedChunkGroups, chunks: allChunks } = webpackStats;
|
|
29
29
|
const resolvedChunks = [];
|
|
30
30
|
for (const chunk of chunks) {
|
|
31
31
|
if (!ignoreDependencies && (namedChunkGroups === null || namedChunkGroups === void 0 ? void 0 : namedChunkGroups[chunk])) {
|
|
@@ -35,7 +35,14 @@ const flushFiles = (chunks, webpackStats, { ignoreDependencies = false, } = {})
|
|
|
35
35
|
resolvedChunks.push(chunk);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
const files = flatten__default["default"](uniq__default["default"](resolvedChunks).map((chunk) =>
|
|
38
|
+
const files = flatten__default["default"](uniq__default["default"](resolvedChunks).map((chunk) => {
|
|
39
|
+
let assetFiles = assetsByChunkName[chunk];
|
|
40
|
+
if (!assetFiles && allChunks) {
|
|
41
|
+
const chunkById = allChunks.find((c) => c.id === chunk);
|
|
42
|
+
assetFiles = chunkById === null || chunkById === void 0 ? void 0 : chunkById.files;
|
|
43
|
+
}
|
|
44
|
+
return assetFiles;
|
|
45
|
+
}));
|
|
39
46
|
return getFilesByType(files);
|
|
40
47
|
};
|
|
41
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-render",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.132.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"@tinkoff/layout-factory": "0.3.8",
|
|
27
27
|
"@tinkoff/errors": "0.3.8",
|
|
28
28
|
"@tinkoff/url": "0.8.6",
|
|
29
|
-
"@tinkoff/user-agent": "0.4.
|
|
30
|
-
"@tramvai/module-client-hints": "2.
|
|
31
|
-
"@tramvai/module-router": "2.
|
|
32
|
-
"@tramvai/react": "2.
|
|
29
|
+
"@tinkoff/user-agent": "0.4.390",
|
|
30
|
+
"@tramvai/module-client-hints": "2.132.0",
|
|
31
|
+
"@tramvai/module-router": "2.132.0",
|
|
32
|
+
"@tramvai/react": "2.132.0",
|
|
33
33
|
"@tramvai/safe-strings": "0.5.11",
|
|
34
|
-
"@tramvai/tokens-render": "2.
|
|
35
|
-
"@tramvai/experiments": "2.
|
|
34
|
+
"@tramvai/tokens-render": "2.132.0",
|
|
35
|
+
"@tramvai/experiments": "2.132.0",
|
|
36
36
|
"@types/loadable__server": "^5.12.6",
|
|
37
37
|
"node-fetch": "^2.6.1"
|
|
38
38
|
},
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@tinkoff/dippy": "0.8.15",
|
|
41
41
|
"@tinkoff/utils": "^2.1.2",
|
|
42
42
|
"@tinkoff/react-hooks": "0.1.6",
|
|
43
|
-
"@tramvai/cli": "2.
|
|
44
|
-
"@tramvai/core": "2.
|
|
45
|
-
"@tramvai/module-common": "2.
|
|
46
|
-
"@tramvai/state": "2.
|
|
47
|
-
"@tramvai/test-helpers": "2.
|
|
48
|
-
"@tramvai/tokens-common": "2.
|
|
49
|
-
"@tramvai/tokens-router": "2.
|
|
50
|
-
"@tramvai/tokens-server-private": "2.
|
|
43
|
+
"@tramvai/cli": "2.132.0",
|
|
44
|
+
"@tramvai/core": "2.132.0",
|
|
45
|
+
"@tramvai/module-common": "2.132.0",
|
|
46
|
+
"@tramvai/state": "2.132.0",
|
|
47
|
+
"@tramvai/test-helpers": "2.132.0",
|
|
48
|
+
"@tramvai/tokens-common": "2.132.0",
|
|
49
|
+
"@tramvai/tokens-router": "2.132.0",
|
|
50
|
+
"@tramvai/tokens-server-private": "2.132.0",
|
|
51
51
|
"express": "^4.17.1",
|
|
52
52
|
"prop-types": "^15.6.2",
|
|
53
53
|
"react": ">=16.14.0",
|