@rspack/plugin-react-refresh 0.3.11 → 0.3.12

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.js CHANGED
@@ -4,10 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  const path_1 = __importDefault(require("path"));
6
6
  const options_1 = require("./options");
7
- const schema_utils_1 = require("schema-utils");
8
7
  const reactRefreshPath = require.resolve("../client/reactRefresh.js");
9
8
  const reactRefreshEntryPath = require.resolve("../client/reactRefreshEntry.js");
10
- const schema = require("../options.json");
11
9
  const refreshUtilsPath = require.resolve("@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils", {
12
10
  paths: [reactRefreshPath]
13
11
  });
@@ -27,10 +25,6 @@ const runtimePaths = [
27
25
  */
28
26
  class ReactRefreshRspackPlugin {
29
27
  constructor(options = {}) {
30
- (0, schema_utils_1.validate)(schema, options, {
31
- name: "React Refresh Rspack Plugin",
32
- baseDataPath: "options"
33
- });
34
28
  this.options = (0, options_1.normalizeOptions)(options);
35
29
  }
36
30
  apply(compiler) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/plugin-react-refresh",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "license": "MIT",
5
5
  "description": "React refresh plugin for rspack",
6
6
  "main": "dist/index.js",
@@ -11,12 +11,12 @@
11
11
  "default": "./dist/index.js"
12
12
  },
13
13
  "./react-refresh": "./client/reactRefresh.js",
14
- "./react-refresh-entry": "./client/reactRefreshEntry.js"
14
+ "./react-refresh-entry": "./client/reactRefreshEntry.js",
15
+ "./package.json": "./package.json"
15
16
  },
16
17
  "files": [
17
18
  "client",
18
- "dist",
19
- "options.json"
19
+ "dist"
20
20
  ],
21
21
  "publishConfig": {
22
22
  "access": "public"
@@ -29,13 +29,12 @@
29
29
  "directory": "packages/rspack-plugin-react-refresh"
30
30
  },
31
31
  "dependencies": {
32
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
33
- "schema-utils": "^4.0.0"
32
+ "@pmmmwh/react-refresh-webpack-plugin": "0.5.10"
34
33
  },
35
34
  "devDependencies": {
36
35
  "react-refresh": "0.14.0",
37
- "@rspack/plugin-react-refresh": "0.3.11",
38
- "@rspack/core": "0.3.11"
36
+ "@rspack/core": "0.3.12",
37
+ "@rspack/plugin-react-refresh": "0.3.12"
39
38
  },
40
39
  "peerDependencies": {
41
40
  "react-refresh": ">=0.10.0 <1.0.0"
package/options.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "additionalProperties": false,
3
- "type": "object",
4
- "definitions": {
5
- "Path": { "type": "string" },
6
- "MatchCondition": {
7
- "anyOf": [
8
- { "instanceof": "RegExp" },
9
- { "$ref": "#/definitions/Path" },
10
- { "type": "null" }
11
- ]
12
- },
13
- "MatchConditions": {
14
- "type": "array",
15
- "items": { "$ref": "#/definitions/MatchCondition" },
16
- "minItems": 1
17
- }
18
- },
19
- "properties": {
20
- "exclude": {
21
- "anyOf": [
22
- { "$ref": "#/definitions/MatchCondition" },
23
- { "$ref": "#/definitions/MatchConditions" }
24
- ]
25
- },
26
- "include": {
27
- "anyOf": [
28
- { "$ref": "#/definitions/MatchCondition" },
29
- { "$ref": "#/definitions/MatchConditions" }
30
- ]
31
- }
32
- }
33
- }