We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f81f0 commit 8d50992Copy full SHA for 8d50992
src/index.ts
@@ -7,7 +7,7 @@ import {
7
getSocketIntegration,
8
} from './utils/getSocketIntegration';
9
10
-import { type Compiler, RuntimeGlobals } from '@rspack/core';
+import type { Compiler } from '@rspack/core';
11
import type { NormalizedPluginOptions, PluginOptions } from './options';
12
import { getIntegrationEntry } from './utils/getIntegrationEntry';
13
@@ -133,7 +133,7 @@ class ReactRefreshRspackPlugin {
133
compilation.hooks.additionalTreeRuntimeRequirements.tap(
134
PLUGIN_NAME,
135
(_, runtimeRequirements) => {
136
- runtimeRequirements.add(RuntimeGlobals.moduleCache);
+ runtimeRequirements.add(compiler.rspack.RuntimeGlobals.moduleCache);
137
},
138
);
139
});
0 commit comments