diff --git a/package.json b/package.json index 63cf8d3..06c37a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rspack/plugin-react-refresh", - "version": "1.2.0", + "version": "1.2.1", "repository": "https://github.com/rspack-contrib/rspack-plugin-react-refresh", "license": "MIT", "description": "React refresh plugin for rspack", diff --git a/src/index.ts b/src/index.ts index b6f0f92..913fb7a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import { getSocketIntegration, } from './utils/getSocketIntegration'; -import { type Compiler, RuntimeGlobals } from '@rspack/core'; +import type { Compiler } from '@rspack/core'; import type { NormalizedPluginOptions, PluginOptions } from './options'; import { getIntegrationEntry } from './utils/getIntegrationEntry'; @@ -133,7 +133,7 @@ class ReactRefreshRspackPlugin { compilation.hooks.additionalTreeRuntimeRequirements.tap( PLUGIN_NAME, (_, runtimeRequirements) => { - runtimeRequirements.add(RuntimeGlobals.moduleCache); + runtimeRequirements.add(compiler.rspack.RuntimeGlobals.moduleCache); }, ); }); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy