@vitejs/plugin-react
Advanced tools
Comparing version 4.2.0 to 4.2.1
import { TransformOptions, ParserOptions } from '@babel/core'; | ||
import { ResolvedConfig, PluginOption } from 'vite'; | ||
import { PluginOption, ResolvedConfig } from 'vite'; | ||
@@ -43,12 +43,8 @@ interface Options { | ||
}; | ||
declare module 'vite' { | ||
interface Plugin { | ||
api?: { | ||
/** | ||
* Manipulate the Babel options of `@vitejs/plugin-react` | ||
*/ | ||
reactBabel?: ReactBabelHook; | ||
}; | ||
} | ||
} | ||
type ViteReactPluginApi = { | ||
/** | ||
* Manipulate the Babel options of `@vitejs/plugin-react` | ||
*/ | ||
reactBabel?: ReactBabelHook; | ||
}; | ||
declare function viteReact(opts?: Options): PluginOption[]; | ||
@@ -59,2 +55,2 @@ declare namespace viteReact { | ||
export { type BabelOptions, type Options, type ReactBabelOptions, viteReact as default }; | ||
export { type BabelOptions, type Options, type ReactBabelOptions, type ViteReactPluginApi, viteReact as default }; |
{ | ||
"name": "@vitejs/plugin-react", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"license": "MIT", | ||
@@ -41,6 +41,6 @@ "author": "Evan You", | ||
"dependencies": { | ||
"@babel/core": "^7.23.3", | ||
"@babel/core": "^7.23.5", | ||
"@babel/plugin-transform-react-jsx-self": "^7.23.3", | ||
"@babel/plugin-transform-react-jsx-source": "^7.23.3", | ||
"@types/babel__core": "^7.20.4", | ||
"@types/babel__core": "^7.20.5", | ||
"react-refresh": "^0.14.0" | ||
@@ -47,0 +47,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34108
680
Updated@babel/core@^7.23.5
Updated@types/babel__core@^7.20.5