@vitejs/plugin-react-swc 3.7.1 → 3.7.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitejs/plugin-react-swc",
3
3
  "description": "Speed up your Vite dev server with SWC",
4
- "version": "3.7.1",
4
+ "version": "3.7.2",
5
5
  "author": "Arnaud Barré (https://github.com/ArnaudBarre)",
6
6
  "license": "MIT",
7
7
  "repository": "github:vitejs/vite-plugin-react-swc",
@@ -25,7 +25,7 @@
25
25
  "fast refresh"
26
26
  ],
27
27
  "peerDependencies": {
28
- "vite": "^4 || ^5"
28
+ "vite": "^4 || ^5 || ^6"
29
29
  },
30
30
  "dependencies": {
31
31
  "@swc/core": "^1.7.26"
@@ -364,11 +364,6 @@ function isLikelyComponentType(type) {
364
364
  }
365
365
  }
366
366
  }
367
- if (window.$RefreshReg$) {
368
- throw new Error(
369
- "React refresh runtime was loaded twice. Maybe you forgot the base path?"
370
- );
371
- }
372
367
  function getRefreshReg(filename) {
373
368
  return (type, id) => register(type, filename + " " + id);
374
369
  }