@@ -37,7 +37,7 @@ The enabling of the [Preact Refresh](https://github.com/preactjs/prefresh) is di
3737
3838``` js
3939import { createRequire } from ' node:module' ;
40- import PreactRefreshPlugin from ' @rspack/plugin-preact-refresh' ;
40+ import { PreactRefreshRspackPlugin } from ' @rspack/plugin-preact-refresh' ;
4141
4242const require = createRequire (import .meta.url);
4343const isDev = process .env .NODE_ENV === ' development' ;
@@ -82,7 +82,7 @@ export default {
8282 },
8383 ],
8484 },
85- plugins: [isDev && new PreactRefreshPlugin ()].filter (Boolean ),
85+ plugins: [isDev && new PreactRefreshRspackPlugin ()].filter (Boolean ),
8686};
8787` ` `
8888
@@ -96,7 +96,7 @@ export default {
9696Include files to be processed by the plugin. The value is the same as the ` rule .test ` option in Rspack.
9797
9898` ` ` js
99- new PreactRefreshPlugin ({
99+ new PreactRefreshRspackPlugin ({
100100 include: [/ \. jsx$ / , / \. tsx$ / ],
101101});
102102` ` `
@@ -109,7 +109,7 @@ new PreactRefreshPlugin({
109109Exclude files from being processed by the plugin. The value is the same as the ` rule .exclude ` option in Rspack.
110110
111111` ` ` js
112- new PreactRefreshPlugin ({
112+ new PreactRefreshRspackPlugin ({
113113 exclude: [/ node_modules/ , / some-other-module/ ],
114114});
115115` ` `
@@ -127,7 +127,7 @@ import { createRequire } from 'node:module';
127127
128128const require = createRequire (import .meta.url);
129129
130- new PreactRefreshPlugin ({
130+ new PreactRefreshRspackPlugin ({
131131 preactPath: path .dirname (require .resolve (' preact/package.json' )),
132132});
133133` ` `
0 commit comments