@lynx-js/react-refresh-webpack-plugin-canary 0.3.6 → 0.4.0-canary-20260612-e0aa6a3f

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @lynx-js/react-refresh-webpack-plugin
2
2
 
3
+ ## 0.4.0-canary-20260612054946-e0aa6a3f4fc8ba848a3a41789b3775a46fea24dc
4
+
5
+ ### Minor Changes
6
+
7
+ - **BREAKING CHANGE** ([#2803](https://github.com/lynx-family/lynx-stack/pull/2803))
8
+
9
+ Drop webpack support — the plugins now target Rspack only. All public types come from `@rspack/core` instead of `webpack` (e.g. `Compiler`, `Compilation`, `LoaderContext`), and the `webpack` dependency is removed.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`409594b`](https://github.com/lynx-family/lynx-stack/commit/409594b9c51bb0c13f01c7d3f16949b27ebfdced), [`409594b`](https://github.com/lynx-family/lynx-stack/commit/409594b9c51bb0c13f01c7d3f16949b27ebfdced), [`409594b`](https://github.com/lynx-family/lynx-stack/commit/409594b9c51bb0c13f01c7d3f16949b27ebfdced)]:
14
+ - @lynx-js/react-webpack-plugin@0.9.4-canary-20260612054946-e0aa6a3f4fc8ba848a3a41789b3775a46fea24dc
15
+
3
16
  ## 0.3.6
4
17
 
5
18
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import type { Compiler } from 'webpack';
1
+ import type { Compiler } from '@rspack/core';
2
2
  /**
3
3
  * The options for {@link ReactRefreshWebpackPlugin}.
4
4
  *
@@ -99,7 +99,8 @@ export class ReactRefreshWebpackPlugin {
99
99
  .replaceAll('$BACKGROUND_LAYER$', LAYERS.BACKGROUND);
100
100
  }
101
101
  }
102
- compilation.mainTemplate.hooks.localVars.tap(PLUGIN_NAME, source => {
102
+ // rspack keeps a deprecated `mainTemplate` proxy at runtime; absent in types.
103
+ compilation.mainTemplate.hooks.localVars.tap(PLUGIN_NAME, (source) => {
103
104
  return `
104
105
  ${source}
105
106
  // noop fns to prevent runtime errors during initialization
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-refresh-webpack-plugin-canary",
3
- "version": "0.3.6",
3
+ "version": "0.4.0-canary-20260612-e0aa6a3f",
4
4
  "description": "A webpack plugin to hot refresh for Lynx.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -35,14 +35,14 @@
35
35
  ],
36
36
  "devDependencies": {
37
37
  "@microsoft/api-extractor": "7.58.2",
38
- "@rspack/core": "1.7.9",
39
- "@rstest/core": "0.8.1",
38
+ "@rspack/core": "2.0.6",
39
+ "@rspack/lite-tapable": "1.1.0",
40
+ "@rstest/core": "0.10.3",
40
41
  "swc-loader": "^0.2.7",
41
- "webpack": "^5.105.2",
42
- "@lynx-js/react": "npm:@lynx-js/react-canary@0.121.0",
42
+ "@lynx-js/react": "npm:@lynx-js/react-canary@0.121.2-canary-20260612-e0aa6a3f",
43
43
  "@lynx-js/react-refresh": "0.1.0",
44
- "@lynx-js/test-tools": "0.0.0",
45
- "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.9.2"
44
+ "@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.9.4-canary-20260612-e0aa6a3f",
45
+ "@lynx-js/test-tools": "0.0.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@lynx-js/react-webpack-plugin": "*"