We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e563d64 commit c3c2023Copy full SHA for c3c2023
src/index.ts
@@ -121,8 +121,9 @@ class PreactRefreshRspackPlugin implements RspackPluginInstance {
121
compiler.hooks.thisCompilation.tap(NAME, (compilation) => {
122
compilation.hooks.runtimeModule.tap(NAME, (runtimeModule) => {
123
// rspack does not have addRuntimeModule and runtimeRequirements on js side
124
+ const name = runtimeModule.constructorName || runtimeModule.constructor?.name;
125
if (
- runtimeModule.constructorName === 'HotModuleReplacementRuntimeModule'
126
+ name === 'HotModuleReplacementRuntimeModule'
127
) {
128
if (!runtimeModule.source) {
129
throw new Error(
0 commit comments