UNPKG

@vitejs/plugin-react-refresh

Version:

Provides [React Refresh](https://www.npmjs.com/package/react-refresh) support for Vite.

13 lines (8 loc) 297 B
import { Plugin } from 'vite' import { ParserOptions } from '@babel/core' type PluginFactory = (options?: Options) => Plugin declare const createPlugin: PluginFactory & { preambleCode: string } export interface Options { parserPlugins: ParserOptions['plugins'] } export default createPlugin