@rspack/plugin-react-refresh 0.4.5-canary-e4607b7-20240109102535 → 0.4.5-canary-f5476da-20240110010014

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
@@ -33,9 +33,7 @@ class ReactRefreshRspackPlugin {
33
33
  $ReactRefreshRuntime$: reactRefreshPath
34
34
  }).apply(compiler);
35
35
  compiler.options.module.rules.unshift({
36
- // @ts-expect-error
37
36
  include: this.options.include,
38
- // @ts-expect-error
39
37
  exclude: {
40
38
  or: [this.options.exclude, [...runtimePaths]].filter(Boolean)
41
39
  },
package/dist/options.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeOptions = void 0;
4
4
  const d = (object, property, defaultValue) => {
5
+ // TODO: should we also add default for null?
5
6
  if (typeof object[property] === "undefined" &&
6
7
  typeof defaultValue !== "undefined") {
7
8
  object[property] = defaultValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/plugin-react-refresh",
3
- "version": "0.4.5-canary-e4607b7-20240109102535",
3
+ "version": "0.4.5-canary-f5476da-20240110010014",
4
4
  "license": "MIT",
5
5
  "description": "React refresh plugin for rspack",
6
6
  "main": "dist/index.js",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "react-refresh": "0.14.0",
32
- "@rspack/core": "0.4.5-canary-e4607b7-20240109102535",
33
- "@rspack/plugin-react-refresh": "0.4.5-canary-e4607b7-20240109102535"
32
+ "@rspack/core": "0.4.5-canary-f5476da-20240110010014",
33
+ "@rspack/plugin-react-refresh": "0.4.5-canary-f5476da-20240110010014"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react-refresh": ">=0.10.0 <1.0.0"