Home > @lynx-js/react-refresh-webpack-plugin > ReactRefreshWebpackPlugin

ReactRefreshWebpackPlugin class

ReactRefreshWebpackPlugin allows using fast refresh in ReactLynx.

Signature:

export declare class ReactRefreshWebpackPlugin 

Example

// webpack.config.js
import { ReactRefreshWebpackPlugin } from '@lynx-js/react-refresh-webpack-plugin'
export default {
  plugins: [new ReactRefreshWebpackPlugin()],
}

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the ReactRefreshWebpackPlugin class

Properties

PropertyModifiersTypeDescription
loaderstaticstringThe loader for react refresh.

Methods

MethodModifiersDescription
apply(compiler)The entry point of a webpack plugin.