@vitejs/plugin-react-swc
Advanced tools
+2
-2
@@ -83,3 +83,3 @@ import { createRequire } from "node:module"; | ||
| const react = (_options) => { | ||
| let hmrDisabled = false; | ||
| let hmrDisabled = true; | ||
| let viteCacheRoot; | ||
@@ -123,3 +123,3 @@ const options = { | ||
| viteCacheRoot = config.cacheDir; | ||
| if (config.server.hmr === false) hmrDisabled = true; | ||
| hmrDisabled = config.server.hmr === false; | ||
| const mdxIndex = config.plugins.findIndex((p) => p.name === "@mdx-js/rollup"); | ||
@@ -126,0 +126,0 @@ if (mdxIndex !== -1 && mdxIndex > config.plugins.findIndex((p) => p.name === "vite:react-swc")) throw new Error("[vite:react-swc] The MDX plugin should be placed before this plugin"); |
+2
-2
| { | ||
| "name": "@vitejs/plugin-react-swc", | ||
| "version": "4.2.0", | ||
| "version": "4.2.1", | ||
| "license": "MIT", | ||
@@ -29,3 +29,3 @@ "author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
| "dependencies": { | ||
| "@rolldown/pluginutils": "1.0.0-beta.43", | ||
| "@rolldown/pluginutils": "1.0.0-beta.46", | ||
| "@swc/core": "^1.13.5" | ||
@@ -32,0 +32,0 @@ }, |
40011
-0.03%+ Added
- Removed