@shuvi/platform-web 1.0.28 → 1.0.29
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.
|
@@ -280,7 +280,6 @@ function tryApplyUpdates(onHotUpdateSuccess) {
|
|
|
280
280
|
return;
|
|
281
281
|
}
|
|
282
282
|
function handleApplyUpdates(err, updatedModules) {
|
|
283
|
-
const hasUpdates = Boolean(updatedModules === null || updatedModules === void 0 ? void 0 : updatedModules.length);
|
|
284
283
|
if (hadRuntimeError) {
|
|
285
284
|
hadRuntimeError = false;
|
|
286
285
|
window.location.reload();
|
|
@@ -289,6 +288,11 @@ function tryApplyUpdates(onHotUpdateSuccess) {
|
|
|
289
288
|
if (err) {
|
|
290
289
|
hadRuntimeError = true;
|
|
291
290
|
}
|
|
291
|
+
const hasUpdates = Boolean(updatedModules === null || updatedModules === void 0 ? void 0 : updatedModules.length);
|
|
292
|
+
if (!hasUpdates) {
|
|
293
|
+
window.location.reload();
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
292
296
|
if (typeof onHotUpdateSuccess === 'function') {
|
|
293
297
|
// Maybe we want to do something.
|
|
294
298
|
onHotUpdateSuccess(hasUpdates);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/platform-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/shuvijs/shuvi.git",
|
|
@@ -72,15 +72,15 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@next/react-refresh-utils": "12.1.6",
|
|
75
|
-
"@shuvi/error-overlay": "1.0.
|
|
76
|
-
"@shuvi/hook": "1.0.
|
|
77
|
-
"@shuvi/platform-shared": "1.0.
|
|
78
|
-
"@shuvi/router": "1.0.
|
|
79
|
-
"@shuvi/router-react": "1.0.
|
|
80
|
-
"@shuvi/runtime": "1.0.
|
|
81
|
-
"@shuvi/shared": "1.0.
|
|
82
|
-
"@shuvi/toolpack": "1.0.
|
|
83
|
-
"@shuvi/utils": "1.0.
|
|
75
|
+
"@shuvi/error-overlay": "1.0.29",
|
|
76
|
+
"@shuvi/hook": "1.0.29",
|
|
77
|
+
"@shuvi/platform-shared": "1.0.29",
|
|
78
|
+
"@shuvi/router": "1.0.29",
|
|
79
|
+
"@shuvi/router-react": "1.0.29",
|
|
80
|
+
"@shuvi/runtime": "1.0.29",
|
|
81
|
+
"@shuvi/shared": "1.0.29",
|
|
82
|
+
"@shuvi/toolpack": "1.0.29",
|
|
83
|
+
"@shuvi/utils": "1.0.29",
|
|
84
84
|
"content-type": "1.0.4",
|
|
85
85
|
"core-js": "3.6.5",
|
|
86
86
|
"doura": "0.0.11",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"whatwg-fetch": "3.0.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@shuvi/service": "1.0.
|
|
101
|
+
"@shuvi/service": "1.0.29"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@shuvi/service": "workspace:*",
|