@vitejs/plugin-react 3.0.0 → 3.0.1

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/index.cjs CHANGED
@@ -104,6 +104,7 @@ function isReactRefreshBoundary(mod) {
104
104
  }
105
105
 
106
106
  import.meta.hot.accept(mod => {
107
+ if (!mod) return;
107
108
  if (isReactRefreshBoundary(mod)) {
108
109
  ${timeout}
109
110
  } else {
package/dist/index.mjs CHANGED
@@ -89,6 +89,7 @@ function isReactRefreshBoundary(mod) {
89
89
  }
90
90
 
91
91
  import.meta.hot.accept(mod => {
92
+ if (!mod) return;
92
93
  if (isReactRefreshBoundary(mod)) {
93
94
  ${timeout}
94
95
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-react",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "license": "MIT",
5
5
  "author": "Evan You",
6
6
  "contributors": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme",
40
40
  "dependencies": {
41
- "@babel/core": "^7.20.5",
41
+ "@babel/core": "^7.20.7",
42
42
  "@babel/plugin-transform-react-jsx-self": "^7.18.6",
43
43
  "@babel/plugin-transform-react-jsx-source": "^7.19.6",
44
44
  "magic-string": "^0.27.0",