@vitejs/plugin-react
Advanced tools
Comparing version
@@ -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 [](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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
56173
46.82%1309
63.63%Yes
NaN2
100%1
Infinity%2
100%