@vitejs/plugin-react-oxc
Version:
The future default Vite plugin for React projects
15 lines (14 loc) • 410 B
TypeScript
import { Plugin } from "vite";
//#region src/index.d.ts
interface Options {
include?: string | RegExp | Array<string | RegExp>;
exclude?: string | RegExp | Array<string | RegExp>;
/**
* Control where the JSX factory is imported from.
* @default 'react'
*/
jsxImportSource?: string;
}
declare function viteReact(opts?: Options): Plugin[];
//#endregion
export { Options, viteReact as default };