plugins.ReactRefreshPlugin
Class for setting up Hot Module Replacement and React Refresh support using @pmmmwh/react-refresh-webpack-plugin.
• new ReactRefreshPlugin(config?)
Constructs new ReactRefreshPlugin.
| Name | Type | Description |
|---|---|---|
config? |
ReactRefreshPluginConfig |
Plugin configuration options. |
packages/repack/src/webpack/plugins/ReactRefreshPlugin.ts:32
▸ apply(compiler): void
Apply the plugin.
| Name | Type | Description |
|---|---|---|
compiler |
Compiler |
Webpack compiler instance. |
void
packages/repack/src/webpack/plugins/ReactRefreshPlugin.ts:39