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

Name Type Description
config? ReactRefreshPluginConfig Plugin configuration options.

Defined in

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

Methods

apply

apply(compiler): void

Apply the plugin.

Parameters

Name Type Description
compiler Compiler Webpack compiler instance.

Returns

void

Implementation of

WebpackPlugin.apply

Defined in

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