UNPKG

@pmmmwh/react-refresh-webpack-plugin

Version:

An **EXPERIMENTAL** Webpack plugin to enable "Fast Refresh" (also previously known as _Hot Reloading_) for React components.

22 lines (21 loc) 669 B
export = ReactRefreshPlugin; declare class ReactRefreshPlugin { /** * @param {import('./types').ReactRefreshPluginOptions} [options] Options for react-refresh-plugin. */ constructor(options?: import('./types').ReactRefreshPluginOptions | undefined); /** * @readonly * @type {import('./types').NormalizedPluginOptions} */ readonly options: import('./types').NormalizedPluginOptions; /** * Applies the plugin. * @param {import('webpack').Compiler} compiler A webpack compiler object. * @returns {void} */ apply(compiler: import('webpack').Compiler): void; } declare namespace ReactRefreshPlugin { export { ReactRefreshPlugin }; }