@lynx-js/react-rsbuild-plugin 0.16.0 → 0.16.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.
- package/CHANGELOG.md +18 -0
- package/dist/208.js +4 -4
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @lynx-js/react-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Respect `dev.hmr: false` when installing React Refresh integrations so disabled HMR no longer injects the refresh loader or plugin. ([#2487](https://github.com/lynx-family/lynx-stack/pull/2487))
|
|
8
|
+
|
|
9
|
+
- Fix stale callback-local references when transforming JSX inside `children={array.map(...)}` prop expressions. ([#2524](https://github.com/lynx-family/lynx-stack/pull/2524))
|
|
10
|
+
|
|
11
|
+
- Supports @lynx-js/react 0.120.0 ([#1764](https://github.com/lynx-family/lynx-stack/pull/1764))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`e179680`](https://github.com/lynx-family/lynx-stack/commit/e1796803444ba70efa86609b620c3a753b6694de), [`13655ac`](https://github.com/lynx-family/lynx-stack/commit/13655ac8f156ab887de2f527b34c865574ebe6e6), [`f15494b`](https://github.com/lynx-family/lynx-stack/commit/f15494b3b1231c11facd61bf1e07a43b6df5e07c), [`e179680`](https://github.com/lynx-family/lynx-stack/commit/e1796803444ba70efa86609b620c3a753b6694de), [`e179680`](https://github.com/lynx-family/lynx-stack/commit/e1796803444ba70efa86609b620c3a753b6694de)]:
|
|
14
|
+
- @lynx-js/template-webpack-plugin@0.11.0
|
|
15
|
+
- @lynx-js/css-extract-webpack-plugin@0.7.1
|
|
16
|
+
- @lynx-js/react-webpack-plugin@0.9.2
|
|
17
|
+
- @lynx-js/react-alias-rsbuild-plugin@0.16.1
|
|
18
|
+
- @lynx-js/use-sync-external-store@1.5.0
|
|
19
|
+
- @lynx-js/react-refresh-webpack-plugin@0.3.5
|
|
20
|
+
|
|
3
21
|
## 0.16.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/208.js
CHANGED
|
@@ -489,11 +489,11 @@ function applyOptimizeBundleSize(api, options) {
|
|
|
489
489
|
}
|
|
490
490
|
const PLUGIN_NAME_REACT_REFRESH = 'lynx:react:refresh';
|
|
491
491
|
function applyRefresh(api) {
|
|
492
|
-
api.modifyWebpackChain?.(async (chain, { CHAIN_ID, isProd })=>{
|
|
493
|
-
if (!isProd) await applyRefreshRules(api, chain, CHAIN_ID, ReactRefreshWebpackPlugin);
|
|
492
|
+
api.modifyWebpackChain?.(async (chain, { CHAIN_ID, environment, isProd })=>{
|
|
493
|
+
if (!isProd && environment.config.dev?.hmr !== false) await applyRefreshRules(api, chain, CHAIN_ID, ReactRefreshWebpackPlugin);
|
|
494
494
|
});
|
|
495
|
-
api.modifyBundlerChain(async (chain, { isProd, CHAIN_ID })=>{
|
|
496
|
-
if (!isProd) {
|
|
495
|
+
api.modifyBundlerChain(async (chain, { isProd, CHAIN_ID, environment })=>{
|
|
496
|
+
if (!isProd && environment.config.dev?.hmr !== false) {
|
|
497
497
|
const { resolve } = api.useExposed(Symbol.for('@lynx-js/react/internal:resolve'));
|
|
498
498
|
await Promise.all([
|
|
499
499
|
applyRefreshRules(api, chain, CHAIN_ID, ReactRefreshRspackPlugin),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-rsbuild-plugin",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "A rsbuild plugin for ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"tiny-invariant": "^1.3.3",
|
|
36
|
-
"@lynx-js/css-extract-webpack-plugin": "0.7.
|
|
37
|
-
"@lynx-js/react-alias-rsbuild-plugin": "0.16.
|
|
36
|
+
"@lynx-js/css-extract-webpack-plugin": "0.7.1",
|
|
37
|
+
"@lynx-js/react-alias-rsbuild-plugin": "0.16.1",
|
|
38
38
|
"@lynx-js/react-refresh-webpack-plugin": "0.3.5",
|
|
39
|
-
"@lynx-js/react-webpack-plugin": "0.9.
|
|
39
|
+
"@lynx-js/react-webpack-plugin": "0.9.2",
|
|
40
40
|
"@lynx-js/runtime-wrapper-webpack-plugin": "0.1.3",
|
|
41
|
-
"@lynx-js/template-webpack-plugin": "0.
|
|
41
|
+
"@lynx-js/template-webpack-plugin": "0.11.0",
|
|
42
42
|
"@lynx-js/use-sync-external-store": "1.5.0",
|
|
43
43
|
"background-only": "^0.0.1"
|
|
44
44
|
},
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"typia": "10.1.0",
|
|
57
57
|
"typia-rspack-plugin": "2.2.2",
|
|
58
58
|
"@lynx-js/config-rsbuild-plugin": "0.0.2",
|
|
59
|
-
"@lynx-js/react": "0.
|
|
59
|
+
"@lynx-js/react": "0.120.0",
|
|
60
60
|
"@lynx-js/react-transform": "0.2.0",
|
|
61
|
-
"@lynx-js/rspeedy": "0.14.
|
|
61
|
+
"@lynx-js/rspeedy": "0.14.3",
|
|
62
62
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0 || ^0.109.0 || ^0.110.0 || ^0.111.0 || ^0.112.0 || ^0.113.0 || ^0.114.0 || ^0.115.0 || ^0.116.0 || ^0.117.0 || ^0.118.0 || ^0.119.0"
|
|
65
|
+
"@lynx-js/react": "^0.103.0 || ^0.104.0 || ^0.105.0 || ^0.106.0 || ^0.107.0 || ^0.108.0 || ^0.109.0 || ^0.110.0 || ^0.111.0 || ^0.112.0 || ^0.113.0 || ^0.114.0 || ^0.115.0 || ^0.116.0 || ^0.117.0 || ^0.118.0 || ^0.119.0 || ^0.120.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"@lynx-js/react": {
|