Skip to main content
Version: 3x

Class: ReactRefreshPlugin

plugins.ReactRefreshPlugin

Class for setting up Hot Module Replacement and React Refresh support using @pmmmwh/react-refresh-webpack-plugin.

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new ReactRefreshPlugin(config?)

Constructs new ReactRefreshPlugin.

Parameters

NameTypeDescription
config?ReactRefreshPluginConfigPlugin configuration options.

Defined in

packages/repack/src/webpack/plugins/ReactRefreshPlugin.ts:32

Methods

apply

apply(compiler): void

Apply the plugin.

Parameters

NameTypeDescription
compilerCompilerWebpack compiler instance.

Returns

void

Implementation of

WebpackPlugin.apply

Defined in

packages/repack/src/webpack/plugins/ReactRefreshPlugin.ts:39