🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@vitejs/plugin-react

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitejs/plugin-react - npm Package Compare versions

Comparing version

to
4.4.0-beta.1

dist/refresh-runtime.js

3

dist/index.d.ts

@@ -54,2 +54,3 @@ import { TransformOptions, ParserOptions } from '@babel/core';

export { type BabelOptions, type Options, type ReactBabelOptions, type ViteReactPluginApi, viteReact as default };
export = viteReact;
export type { BabelOptions, Options, ReactBabelOptions, ViteReactPluginApi };
{
"name": "@vitejs/plugin-react",
"version": "4.3.4",
"version": "4.4.0-beta.1",
"license": "MIT",
"author": "Evan You",
"description": "The default Vite plugin for React projects",
"keywords": [
"vite",
"vite-plugin",
"react",
"babel",
"react-refresh",
"fast refresh"
],
"contributors": [

@@ -13,2 +22,3 @@ "Alec Larson",

],
"type": "module",
"main": "./dist/index.cjs",

@@ -25,3 +35,3 @@ "module": "./dist/index.mjs",

"dev": "unbuild --stub",
"build": "unbuild && pnpm run patch-cjs && tsx scripts/copyRefreshUtils.ts",
"build": "unbuild && pnpm run patch-cjs && tsx scripts/copyRefreshRuntime.ts",
"patch-cjs": "tsx ../../scripts/patchCJS.ts",

@@ -53,4 +63,5 @@ "prepublishOnly": "npm run build"

"devDependencies": {
"unbuild": "^2.0.0"
"@vitejs/react-common": "workspace:*",
"unbuild": "^3.5.0"
}
}

@@ -99,3 +99,3 @@ # @vitejs/plugin-react [![npm](https://img.shields.io/npm/v/@vitejs/plugin-react.svg)](https://npmjs.com/package/@vitejs/plugin-react)

In [middleware mode](https://vitejs.dev/config/server-options.html#server-middlewaremode), you should make sure your entry `index.html` file is transformed by Vite. Here's an example for an Express server:
In [middleware mode](https://vite.dev/config/server-options.html#server-middlewaremode), you should make sure your entry `index.html` file is transformed by Vite. Here's an example for an Express server:

@@ -102,0 +102,0 @@ ```js

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet