@rspack/plugin-react-refresh 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  const path_1 = __importDefault(require("path"));
6
- const core_1 = require("@rspack/core");
7
6
  const options_1 = require("./options");
8
7
  const reactRefreshPath = require.resolve("../client/reactRefresh.js");
9
8
  const reactRefreshEntryPath = require.resolve("../client/reactRefreshEntry.js");
@@ -50,7 +49,7 @@ class ReactRefreshRspackPlugin {
50
49
  compiler.options.output.uniqueName ||
51
50
  compiler.options.output.library))
52
51
  };
53
- new core_1.DefinePlugin(definedModules).apply(compiler);
52
+ new compiler.webpack.DefinePlugin(definedModules).apply(compiler);
54
53
  const refreshPath = path_1.default.dirname(require.resolve("react-refresh"));
55
54
  compiler.options.resolve.alias = {
56
55
  "react-refresh": refreshPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/plugin-react-refresh",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "MIT",
5
5
  "description": "React refresh plugin for rspack",
6
6
  "main": "dist/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "react-refresh": "0.14.0",
35
- "@rspack/core": "0.4.0",
36
- "@rspack/plugin-react-refresh": "0.4.0"
35
+ "@rspack/core": "0.4.1",
36
+ "@rspack/plugin-react-refresh": "0.4.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react-refresh": ">=0.10.0 <1.0.0"