@rspack/plugin-react-refresh 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type Compiler } from '@rspack/core';
1
+ import type { Compiler } from '@rspack/core';
2
2
  import type { NormalizedPluginOptions, PluginOptions } from './options';
3
3
  export type { PluginOptions };
4
4
  declare class ReactRefreshRspackPlugin {
package/dist/index.js CHANGED
@@ -7,7 +7,6 @@ const options_1 = require("./options");
7
7
  const paths_1 = require("./paths");
8
8
  const getAdditionalEntries_1 = require("./utils/getAdditionalEntries");
9
9
  const getSocketIntegration_1 = require("./utils/getSocketIntegration");
10
- const core_1 = require("@rspack/core");
11
10
  const getIntegrationEntry_1 = require("./utils/getIntegrationEntry");
12
11
  function addEntry(entry, compiler) {
13
12
  new compiler.webpack.EntryPlugin(compiler.context, entry, {
@@ -97,7 +96,7 @@ class ReactRefreshRspackPlugin {
97
96
  };
98
97
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
99
98
  compilation.hooks.additionalTreeRuntimeRequirements.tap(PLUGIN_NAME, (_, runtimeRequirements) => {
100
- runtimeRequirements.add(core_1.RuntimeGlobals.moduleCache);
99
+ runtimeRequirements.add(compiler.rspack.RuntimeGlobals.moduleCache);
101
100
  });
102
101
  });
103
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/plugin-react-refresh",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "repository": "https://github.com/rspack-contrib/rspack-plugin-react-refresh",
5
5
  "license": "MIT",
6
6
  "description": "React refresh plugin for rspack",