@shuvi/platform-web 1.0.15 → 1.0.16

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.
@@ -110,6 +110,11 @@ function onFastRefresh(hasUpdates) {
110
110
  const endLatency = Date.now();
111
111
  const latency = endLatency - startLatency;
112
112
  console.log(`[Fast Refresh] done in ${latency}ms`);
113
+ sendMessage(JSON.stringify({
114
+ event: 'client-hmr-latency',
115
+ startTime: startLatency,
116
+ endTime: endLatency
117
+ }));
113
118
  }
114
119
  }
115
120
  // Successful compilation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-web",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -72,17 +72,17 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@next/react-refresh-utils": "12.1.6",
75
- "@shuvi/error-overlay": "1.0.15",
76
- "@shuvi/hook": "1.0.15",
77
- "@shuvi/platform-shared": "1.0.15",
75
+ "@shuvi/error-overlay": "1.0.16",
76
+ "@shuvi/hook": "1.0.16",
77
+ "@shuvi/platform-shared": "1.0.16",
78
78
  "doura": "0.0.7",
79
79
  "react-doura": "0.0.7",
80
- "@shuvi/router": "1.0.15",
81
- "@shuvi/router-react": "1.0.15",
82
- "@shuvi/runtime": "1.0.15",
83
- "@shuvi/shared": "1.0.15",
84
- "@shuvi/toolpack": "1.0.15",
85
- "@shuvi/utils": "1.0.15",
80
+ "@shuvi/router": "1.0.16",
81
+ "@shuvi/router-react": "1.0.16",
82
+ "@shuvi/runtime": "1.0.16",
83
+ "@shuvi/shared": "1.0.16",
84
+ "@shuvi/toolpack": "1.0.16",
85
+ "@shuvi/utils": "1.0.16",
86
86
  "content-type": "1.0.4",
87
87
  "core-js": "3.6.5",
88
88
  "ejs": "3.1.5",
@@ -98,7 +98,7 @@
98
98
  "whatwg-fetch": "3.0.0"
99
99
  },
100
100
  "peerDependencies": {
101
- "@shuvi/service": "1.0.15"
101
+ "@shuvi/service": "1.0.16"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@shuvi/service": "workspace:*",