Skip to content

Commit 8d50992

Browse files
authored
fix: failed to resolve phantom dependency (#25)
1 parent f4f81f0 commit 8d50992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getSocketIntegration,
88
} from './utils/getSocketIntegration';
99

10-
import { type Compiler, RuntimeGlobals } from '@rspack/core';
10+
import type { Compiler } from '@rspack/core';
1111
import type { NormalizedPluginOptions, PluginOptions } from './options';
1212
import { getIntegrationEntry } from './utils/getIntegrationEntry';
1313

@@ -133,7 +133,7 @@ class ReactRefreshRspackPlugin {
133133
compilation.hooks.additionalTreeRuntimeRequirements.tap(
134134
PLUGIN_NAME,
135135
(_, runtimeRequirements) => {
136-
runtimeRequirements.add(RuntimeGlobals.moduleCache);
136+
runtimeRequirements.add(compiler.rspack.RuntimeGlobals.moduleCache);
137137
},
138138
);
139139
});

0 commit comments

Comments
 (0)