@tramvai/react 5.10.0 → 5.14.9
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.
- package/lib/lazy/lazy.es.js +1 -1
- package/lib/lazy/lazy.js +1 -1
- package/package.json +2 -2
package/lib/lazy/lazy.es.js
CHANGED
|
@@ -30,7 +30,7 @@ const __lazyErrorHandler = (error, load) => {
|
|
|
30
30
|
// By default, this error will cancel the loading of the component via `loadable`.
|
|
31
31
|
// Now, we can add `__lazyErrorHandler` to catch block of any dynamic import,
|
|
32
32
|
// and if failed assets was loaded again, `loadable` will not fail
|
|
33
|
-
if (
|
|
33
|
+
if (error?.code === 'CSS_CHUNK_LOAD_FAILED') {
|
|
34
34
|
const failedLinkUrl = error.request;
|
|
35
35
|
// `mini-css-extract-plugin` instantly removes failed link tags,
|
|
36
36
|
// so we can expect only link tag from our recovery mechanism
|
package/lib/lazy/lazy.js
CHANGED
|
@@ -39,7 +39,7 @@ const __lazyErrorHandler = (error, load) => {
|
|
|
39
39
|
// By default, this error will cancel the loading of the component via `loadable`.
|
|
40
40
|
// Now, we can add `__lazyErrorHandler` to catch block of any dynamic import,
|
|
41
41
|
// and if failed assets was loaded again, `loadable` will not fail
|
|
42
|
-
if (
|
|
42
|
+
if (error?.code === 'CSS_CHUNK_LOAD_FAILED') {
|
|
43
43
|
const failedLinkUrl = error.request;
|
|
44
44
|
// `mini-css-extract-plugin` instantly removes failed link tags,
|
|
45
45
|
// so we can expect only link tag from our recovery mechanism
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/react.js",
|
|
6
6
|
"typings": "lib/react.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@loadable/component": "^5.15.2",
|
|
21
21
|
"@types/loadable__component": "^5.13.4",
|
|
22
|
-
"@tramvai/types-actions-state-context": "5.
|
|
22
|
+
"@tramvai/types-actions-state-context": "5.14.9",
|
|
23
23
|
"hoist-non-react-statics": "^3.3.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|