@vitejs/plugin-react 4.0.2 → 4.0.3
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/dist/refreshUtils.js +1 -10
- package/package.json +1 -1
package/dist/refreshUtils.js
CHANGED
@@ -1,13 +1,3 @@
|
|
1
|
-
/* eslint-disable no-undef */
|
2
|
-
if (typeof window !== 'undefined') {
|
3
|
-
if (window.__vite_plugin_react_runtime_loaded__) {
|
4
|
-
throw new Error(
|
5
|
-
'React refresh runtime was loaded twice. Maybe you forgot the base path?',
|
6
|
-
)
|
7
|
-
}
|
8
|
-
window.__vite_plugin_react_runtime_loaded__ = true
|
9
|
-
}
|
10
|
-
|
11
1
|
function debounce(fn, delay) {
|
12
2
|
let handle
|
13
3
|
return () => {
|
@@ -16,6 +6,7 @@ function debounce(fn, delay) {
|
|
16
6
|
}
|
17
7
|
}
|
18
8
|
|
9
|
+
/* eslint-disable no-undef */
|
19
10
|
const enqueueUpdate = debounce(exports.performReactRefresh, 16)
|
20
11
|
|
21
12
|
// Taken from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/runtime/RefreshUtils.js#L141
|