Skip to content

Commit 62d96cc

Browse files
committed
fix
1 parent c326ef0 commit 62d96cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ class PreactRefreshRspackPlugin implements RspackPluginInstance {
121121
compiler.hooks.thisCompilation.tap(NAME, (compilation) => {
122122
compilation.hooks.runtimeModule.tap(NAME, (runtimeModule) => {
123123
// rspack does not have addRuntimeModule and runtimeRequirements on js side
124-
// @ts-expect-error
125124
const name =
125+
// @ts-expect-error
126126
runtimeModule.constructorName || runtimeModule.constructor?.name;
127127
if (name === 'HotModuleReplacementRuntimeModule') {
128128
if (!runtimeModule.source) {

0 commit comments

Comments
 (0)