@lynx-js/react-alias-rsbuild-plugin-canary 0.10.13 → 0.10.14-canary-20250908-c2f90bdb
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/index.js +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @lynx-js/react-alias-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.10.14-canary-20250908042016-c2f90bdb0ce465702b0b4a46108b16e78678225f
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Allow customization of the `react# @lynx-js/react-alias-rsbuild-plugin alias. ([#1653](https://github.com/lynx-family/lynx-stack/pull/1653))
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
11
|
+
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
resolve: {
|
|
14
|
+
alias: {
|
|
15
|
+
react$: "@lynx-js/react/compat",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
```
|
|
20
|
+
|
|
3
21
|
## 0.10.13
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -440,7 +440,8 @@ function pluginReactAlias(options) {
|
|
|
440
440
|
chain.resolve.alias.set('@lynx-js/react/debug$', false);
|
|
441
441
|
chain.resolve.alias.set('@lynx-js/preact-devtools$', false);
|
|
442
442
|
}
|
|
443
|
-
chain.resolve.alias.
|
|
443
|
+
if (!chain.resolve.alias.has('react$')) chain.resolve.alias.set('react$', reactLepus.background);
|
|
444
|
+
chain.resolve.alias.set('@lynx-js/react$', reactLepus.background);
|
|
444
445
|
if (reactCompat) chain.resolve.alias.set('@lynx-js/react/compat$', reactCompat);
|
|
445
446
|
const preactEntries = [
|
|
446
447
|
'preact',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-alias-rsbuild-plugin-canary",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14-canary-20250908-c2f90bdb",
|
|
4
4
|
"description": "A rsbuild plugin for making alias in ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@microsoft/api-extractor": "7.52.11",
|
|
39
|
-
"@rsbuild/core": "1.
|
|
39
|
+
"@rsbuild/core": "1.5.2",
|
|
40
40
|
"@types/semver": "^7.7.0",
|
|
41
41
|
"semver": "^7.7.2",
|
|
42
|
-
"@lynx-js/react": "npm:@lynx-js/react-canary@0.112.4",
|
|
43
42
|
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.20",
|
|
44
|
-
"@lynx-js/vitest-setup": "0.0.0"
|
|
43
|
+
"@lynx-js/vitest-setup": "0.0.0",
|
|
44
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.112.6"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=18"
|