@lynx-js/react-alias-rsbuild-plugin-canary 0.10.10 → 0.10.11-canary-20250809-c8ce6aa3
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 +6 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/react-alias-rsbuild-plugin
|
|
2
2
|
|
|
3
|
+
## 0.10.11-canary-20250809042721-c8ce6aa33abf42a7954e1e345b3a36febe76d048
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix the `Package subpath './compat' is not defined by "exports"` error. ([#1460](https://github.com/lynx-family/lynx-stack/pull/1460))
|
|
8
|
+
|
|
3
9
|
## 0.10.10
|
|
4
10
|
|
|
5
11
|
## 0.10.9
|
package/dist/index.js
CHANGED
|
@@ -384,15 +384,17 @@ function pluginReactAlias(options) {
|
|
|
384
384
|
rootPath ?? api.context.rootPath
|
|
385
385
|
]
|
|
386
386
|
});
|
|
387
|
-
const
|
|
388
|
-
const version = reactLynxPkgContent.version;
|
|
387
|
+
const { version } = require(reactLynxPkg);
|
|
389
388
|
const reactLynxDir = node_path.dirname(reactLynxPkg);
|
|
390
|
-
const resolve = createLazyResolver(
|
|
389
|
+
const resolve = createLazyResolver(rootPath ?? api.context.rootPath, lazy ? [
|
|
391
390
|
'lazy',
|
|
392
391
|
'import'
|
|
393
392
|
] : [
|
|
394
393
|
'import'
|
|
395
394
|
]);
|
|
395
|
+
const resolvePreact = createLazyResolver(reactLynxDir, [
|
|
396
|
+
'import'
|
|
397
|
+
]);
|
|
396
398
|
api.modifyRsbuildConfig((config, { mergeRsbuildConfig })=>mergeRsbuildConfig(config, {
|
|
397
399
|
source: {
|
|
398
400
|
include: [
|
|
@@ -452,7 +454,7 @@ function pluginReactAlias(options) {
|
|
|
452
454
|
'preact/compat/jsx-dev-runtime',
|
|
453
455
|
'preact/compat/scheduler'
|
|
454
456
|
];
|
|
455
|
-
await Promise.all(preactEntries.map((entry)=>
|
|
457
|
+
await Promise.all(preactEntries.map((entry)=>resolvePreact(entry).then((value)=>{
|
|
456
458
|
chain.resolve.alias.set(`${entry}$`, value);
|
|
457
459
|
})));
|
|
458
460
|
});
|
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.11-canary-20250809-c8ce6aa3",
|
|
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.10",
|
|
39
|
-
"@rsbuild/core": "1.4.
|
|
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.2-canary-20250809-c8ce6aa3",
|
|
43
|
+
"@lynx-js/react-webpack-plugin": "npm:@lynx-js/react-webpack-plugin-canary@0.6.19",
|
|
44
|
+
"@lynx-js/vitest-setup": "0.0.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": ">=18"
|