@lynx-js/react-rsbuild-plugin 0.17.1 → 0.17.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @lynx-js/react-rsbuild-plugin
2
2
 
3
+ ## 0.17.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix the `web` environment crashing in development because its main thread was bundled with the Rsbuild web HMR runtime. ([#2910](https://github.com/lynx-family/lynx-stack/pull/2910))
8
+
9
+ Previously the `web` environment was compiled with `target: 'web'`, which makes Rsbuild inject its own HMR client (`@rsbuild/core/dist/client/hmr.js`). That client drives `__webpack_require__.hmrM`, which is implemented with `lynx.requireModuleAsync` — an API the web main thread does not provide — so hot updates crashed.
10
+
11
+ The `web` environment now uses the same target and HMR entry as the `lynx` environment, going through Lynx's own HMR runtime instead of the Rsbuild web one.
12
+
13
+ - Updated dependencies [[`7a6577a`](https://github.com/lynx-family/lynx-stack/commit/7a6577a5b29db4020cbba22a911f712bafde7e66), [`d18c3e7`](https://github.com/lynx-family/lynx-stack/commit/d18c3e7a3976569ec9ba2a1b4a1e0e6c3ffa1f1d)]:
14
+ - @lynx-js/runtime-wrapper-webpack-plugin@0.2.1
15
+ - @lynx-js/react-alias-rsbuild-plugin@0.17.2
16
+ - @lynx-js/react-webpack-plugin@0.9.5
17
+ - @lynx-js/use-sync-external-store@1.5.0
18
+ - @lynx-js/react-refresh-webpack-plugin@0.4.0
19
+ - @lynx-js/template-webpack-plugin@0.12.2
20
+ - @lynx-js/css-extract-webpack-plugin@0.8.0
21
+
3
22
  ## 0.17.1
4
23
 
5
24
  ### Patch Changes
package/dist/index.js CHANGED
@@ -126,8 +126,8 @@ function applyEntry(api, options) {
126
126
  const isLynx = 'lynx' === environment.name || environment.name.startsWith('lynx-');
127
127
  const isWeb = 'web' === environment.name || environment.name.startsWith('web-');
128
128
  const { hmr, liveReload } = environment.config.dev ?? {};
129
- const enabledHMR = isDev && !isWeb && false !== hmr;
130
- const enabledLiveReload = isDev && !isWeb && false !== liveReload;
129
+ const enabledHMR = isDev && false !== hmr;
130
+ const enabledLiveReload = isDev && false !== liveReload;
131
131
  chain.entryPoints.clear();
132
132
  Object.entries(entries).forEach(([entryName, entryPoint])=>{
133
133
  const { imports } = getChunks(entryName, entryPoint.values());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/react-rsbuild-plugin",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "A rsbuild plugin for ReactLynx",
5
5
  "keywords": [
6
6
  "rsbuild",
@@ -34,11 +34,11 @@
34
34
  "dependencies": {
35
35
  "tiny-invariant": "^1.3.3",
36
36
  "@lynx-js/css-extract-webpack-plugin": "0.8.0",
37
- "@lynx-js/react-alias-rsbuild-plugin": "0.17.1",
37
+ "@lynx-js/react-alias-rsbuild-plugin": "0.17.2",
38
38
  "@lynx-js/react-refresh-webpack-plugin": "0.4.0",
39
- "@lynx-js/react-webpack-plugin": "0.9.4",
40
- "@lynx-js/runtime-wrapper-webpack-plugin": "0.2.0",
41
- "@lynx-js/template-webpack-plugin": "0.12.1",
39
+ "@lynx-js/react-webpack-plugin": "0.9.5",
40
+ "@lynx-js/runtime-wrapper-webpack-plugin": "0.2.1",
41
+ "@lynx-js/template-webpack-plugin": "0.12.2",
42
42
  "@lynx-js/use-sync-external-store": "1.5.0",
43
43
  "background-only": "^0.0.1"
44
44
  },
@@ -57,9 +57,9 @@
57
57
  "typia-rspack-plugin": "3.0.1",
58
58
  "@lynx-js/config-rsbuild-plugin": "0.1.0",
59
59
  "@lynx-js/debug-metadata": "0.1.0",
60
- "@lynx-js/react": "0.122.0",
60
+ "@lynx-js/react": "0.122.1",
61
61
  "@lynx-js/react-transform": "0.2.0",
62
- "@lynx-js/rspeedy": "0.15.1",
62
+ "@lynx-js/rspeedy": "0.15.2",
63
63
  "@lynx-js/test-tools": "0.0.0"
64
64
  },
65
65
  "peerDependencies": {