@tramvai/module-child-app 2.94.9 → 2.94.12
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.
|
@@ -28,7 +28,8 @@ class BrowserLoader extends Loader {
|
|
|
28
28
|
event: 'load-fetch',
|
|
29
29
|
moduleName,
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
// `resolveOnCssFailed: true` - allow to load module without server preloading on the client-side
|
|
32
|
+
await loadModule(config.client.entry, { cssUrl: (_a = config.css) === null || _a === void 0 ? void 0 : _a.entry, resolveOnCssFailed: true });
|
|
32
33
|
container = getModuleFromGlobal(config.client.entry);
|
|
33
34
|
if (container) {
|
|
34
35
|
this.log.debug({
|
|
@@ -39,7 +39,11 @@ class PreloadManager {
|
|
|
39
39
|
await this.run('customer', config);
|
|
40
40
|
await this.run('clear', config);
|
|
41
41
|
}
|
|
42
|
-
catch (error) {
|
|
42
|
+
catch (error) {
|
|
43
|
+
if (process.env.NODE_ENV === 'development') {
|
|
44
|
+
console.error('Child App loading error', error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
43
47
|
this.hasPreloadBefore.add(key);
|
|
44
48
|
})();
|
|
45
49
|
this.map.set(key, promise);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-child-app",
|
|
3
|
-
"version": "2.94.
|
|
3
|
+
"version": "2.94.12",
|
|
4
4
|
"description": "Module for child apps",
|
|
5
5
|
"browser": {
|
|
6
6
|
"./lib/server.js": "./lib/browser.js",
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@tinkoff/env-validators": "0.1.6",
|
|
31
|
-
"@tinkoff/module-loader-client": "0.4.
|
|
31
|
+
"@tinkoff/module-loader-client": "0.4.7",
|
|
32
32
|
"@tinkoff/module-loader-server": "0.5.9",
|
|
33
33
|
"@tinkoff/url": "0.8.6",
|
|
34
|
-
"@tramvai/child-app-core": "2.94.
|
|
35
|
-
"@tramvai/module-router": "2.94.
|
|
34
|
+
"@tramvai/child-app-core": "2.94.12",
|
|
35
|
+
"@tramvai/module-router": "2.94.12",
|
|
36
36
|
"@tramvai/safe-strings": "0.5.8",
|
|
37
|
-
"@tramvai/tokens-child-app": "2.94.
|
|
37
|
+
"@tramvai/tokens-child-app": "2.94.12"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@tinkoff/dippy": "0.8.15",
|
|
42
42
|
"@tinkoff/utils": "^2.1.2",
|
|
43
|
-
"@tramvai/core": "2.94.
|
|
44
|
-
"@tramvai/state": "2.94.
|
|
45
|
-
"@tramvai/react": "2.94.
|
|
46
|
-
"@tramvai/tokens-common": "2.94.
|
|
47
|
-
"@tramvai/tokens-render": "2.94.
|
|
48
|
-
"@tramvai/tokens-router": "2.94.
|
|
43
|
+
"@tramvai/core": "2.94.12",
|
|
44
|
+
"@tramvai/state": "2.94.12",
|
|
45
|
+
"@tramvai/react": "2.94.12",
|
|
46
|
+
"@tramvai/tokens-common": "2.94.12",
|
|
47
|
+
"@tramvai/tokens-render": "2.94.12",
|
|
48
|
+
"@tramvai/tokens-router": "2.94.12",
|
|
49
49
|
"react": ">=16.14.0",
|
|
50
50
|
"react-dom": ">=16.14.0",
|
|
51
51
|
"object-assign": "^4.1.1",
|