UNPKG

@wxt-dev/module-react

Version:
22 lines (21 loc) 620 B
import * as wxt from "wxt"; import { Options } from "@vitejs/plugin-react"; import { PluginOption } from "vite"; //#region modules/react.d.ts declare const _default: wxt.WxtModule<ReactModuleOptions>; interface ReactModuleOptions { vite?: Options; /** * Vite plugins to add before the `react()` plugin. Some plugins like the * `@tanstack/router-plugin` need to be added before `react()` to work * correctly. */ vitePluginsBefore?: PluginOption[]; } declare module 'wxt' { interface InlineConfig { react?: ReactModuleOptions; } } //#endregion export { ReactModuleOptions, _default as default };