Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vitejs/plugin-react-swc

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitejs/plugin-react-swc - npm Package Compare versions

Comparing version
4.2.0
to
4.2.1
+2
-2
index.js

@@ -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");

{
"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 @@ },