@lynx-js/react-alias-rsbuild-plugin-canary 0.10.12 → 0.10.13-canary-20250820-f0d483ca
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 +6 -0
- package/dist/index.js +5 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/react-alias-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.10.13-canary-20250820072701-f0d483ca2d3e208a618727590061b0babc075737
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support using multiple times in different environments. ([#1498](https://github.com/lynx-family/lynx-stack/pull/1498))
|
|
8
|
+
|
|
3
9
|
## 0.10.12
|
|
4
10
|
|
|
5
11
|
## 0.10.11
|
package/dist/index.js
CHANGED
|
@@ -375,9 +375,6 @@ function pluginReactAlias(options) {
|
|
|
375
375
|
return {
|
|
376
376
|
name: 'lynx:react-alias',
|
|
377
377
|
setup (api) {
|
|
378
|
-
const hasAlias = api.useExposed(S_PLUGIN_REACT_ALIAS);
|
|
379
|
-
if (hasAlias) return;
|
|
380
|
-
api.expose(S_PLUGIN_REACT_ALIAS, true);
|
|
381
378
|
const require = createRequire(import.meta.url);
|
|
382
379
|
const reactLynxPkg = require.resolve('@lynx-js/react/package.json', {
|
|
383
380
|
paths: [
|
|
@@ -402,7 +399,11 @@ function pluginReactAlias(options) {
|
|
|
402
399
|
]
|
|
403
400
|
}
|
|
404
401
|
}));
|
|
405
|
-
api.modifyBundlerChain(async (chain, { isProd })=>{
|
|
402
|
+
api.modifyBundlerChain(async (chain, { isProd, environment })=>{
|
|
403
|
+
if (Object.hasOwn(environment, S_PLUGIN_REACT_ALIAS)) return;
|
|
404
|
+
Object.defineProperty(environment, S_PLUGIN_REACT_ALIAS, {
|
|
405
|
+
value: true
|
|
406
|
+
});
|
|
406
407
|
const [jsxRuntimeBackground, jsxRuntimeMainThread, jsxDevRuntimeBackground, jsxDevRuntimeMainThread, reactLepusBackground, reactLepusMainThread, reactCompat] = await Promise.all([
|
|
407
408
|
resolve('@lynx-js/react/jsx-runtime'),
|
|
408
409
|
resolve('@lynx-js/react/lepus/jsx-runtime'),
|
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.13-canary-20250820-f0d483ca",
|
|
4
4
|
"description": "A rsbuild plugin for making alias in ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"@rsbuild/core": "1.4.15",
|
|
40
40
|
"@types/semver": "^7.7.0",
|
|
41
41
|
"semver": "^7.7.2",
|
|
42
|
-
"@lynx-js/react": "npm:@lynx-js/react-canary@0.112.
|
|
43
|
-
"@lynx-js/
|
|
44
|
-
"@lynx-js/
|
|
42
|
+
"@lynx-js/react": "npm:@lynx-js/react-canary@0.112.4-canary-20250820-f0d483ca",
|
|
43
|
+
"@lynx-js/vitest-setup": "0.0.0",
|
|
44
|
+
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.19"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=18"
|