@lynx-js/react-alias-rsbuild-plugin-canary 0.18.0 → 0.18.1-canary-20260716-e75b5619
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 +5 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @lynx-js/react-alias-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.18.1-canary-20260716090211-e75b5619c567d9fd28897990281f6332bf6d88c4
|
|
4
|
+
|
|
3
5
|
## 0.18.0
|
|
4
6
|
|
|
5
7
|
### Patch Changes
|
|
@@ -13,7 +15,6 @@
|
|
|
13
15
|
- Support enabling preact devtools in production via the `REACT_DEVTOOL` environment variable. ([#2880](https://github.com/lynx-family/lynx-stack/pull/2880))
|
|
14
16
|
|
|
15
17
|
By default `@lynx-js/preact-devtools` is aliased away in production builds. Setting the `REACT_DEVTOOL` environment variable now:
|
|
16
|
-
|
|
17
18
|
1. keeps a user-imported `@lynx-js/preact-devtools` from being stripped;
|
|
18
19
|
2. defines `__REACT_DEVTOOL__`, which gates the dev-only runtime hooks devtools depends on (such as `injectLepusMethods`) so they also run in production;
|
|
19
20
|
3. keeps function/class names during minification (`keep_fnames`/`keep_classnames`), which devtools needs to resolve component names (`type.name`) and to reconstruct the hook tree (it matches minified stack frames by function name).
|
|
@@ -102,15 +103,15 @@
|
|
|
102
103
|
- Allow customization of the react$ alias. ([#1653](https://github.com/lynx-family/lynx-stack/pull/1653))
|
|
103
104
|
|
|
104
105
|
```js
|
|
105
|
-
import { defineConfig } from
|
|
106
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
106
107
|
|
|
107
108
|
export default defineConfig({
|
|
108
109
|
resolve: {
|
|
109
110
|
alias: {
|
|
110
|
-
react$:
|
|
111
|
+
react$: "@lynx-js/react/compat",
|
|
111
112
|
},
|
|
112
113
|
},
|
|
113
|
-
})
|
|
114
|
+
});
|
|
114
115
|
```
|
|
115
116
|
|
|
116
117
|
## 0.10.13
|
|
@@ -178,7 +179,6 @@
|
|
|
178
179
|
- Refactor: Replace built-in `background-only` implementation with npm package ([#602](https://github.com/lynx-family/lynx-stack/pull/602))
|
|
179
180
|
|
|
180
181
|
Previously we maintained custom files:
|
|
181
|
-
|
|
182
182
|
- `empty.ts` for background thread
|
|
183
183
|
- `error.ts` for main thread validation
|
|
184
184
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-alias-rsbuild-plugin-canary",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1-canary-20260716-e75b5619",
|
|
4
4
|
"description": "A rsbuild plugin for making alias in ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@rstest/core": "0.11.0",
|
|
39
39
|
"@types/semver": "^7.7.1",
|
|
40
40
|
"semver": "^7.7.4",
|
|
41
|
-
"@lynx-js/react
|
|
41
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.123.0",
|
|
42
42
|
"@lynx-js/test-tools": "0.0.0",
|
|
43
|
-
"@lynx-js/react": "npm:@lynx-js/react-canary@0.
|
|
43
|
+
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.10.0"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18"
|