@rspack/plugin-react-refresh 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/dist/options.d.ts +5 -0
- package/dist/options.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -38,8 +38,10 @@ class ReactRefreshRspackPlugin {
|
|
38
38
|
devServer: compiler.options.devServer,
|
39
39
|
options: this.options,
|
40
40
|
});
|
41
|
-
|
42
|
-
|
41
|
+
if (this.options.injectEntry) {
|
42
|
+
for (const entry of addEntries.prependEntries) {
|
43
|
+
addEntry(entry, compiler);
|
44
|
+
}
|
43
45
|
}
|
44
46
|
if (this.options.overlay !== false &&
|
45
47
|
this.options.overlay.sockIntegration) {
|
package/dist/options.d.ts
CHANGED
@@ -46,6 +46,11 @@ export type PluginOptions = {
|
|
46
46
|
* @default true
|
47
47
|
*/
|
48
48
|
injectLoader?: boolean;
|
49
|
+
/**
|
50
|
+
* Whether to inject the client/reactRefreshEntry.js
|
51
|
+
* @default true
|
52
|
+
*/
|
53
|
+
injectEntry?: boolean;
|
49
54
|
};
|
50
55
|
export interface NormalizedPluginOptions extends Required<PluginOptions> {
|
51
56
|
overlay: false | OverlayOptions;
|
package/dist/options.js
CHANGED
package/package.json
CHANGED