@lynx-js/react-alias-rsbuild-plugin 0.10.4 → 0.10.6
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 +4 -0
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
import
|
|
2
|
+
import node_path from "node:path";
|
|
3
3
|
const S_PLUGIN_REACT_ALIAS = Symbol.for('@lynx-js/plugin-react-alias');
|
|
4
4
|
function pluginReactAlias(options) {
|
|
5
5
|
const { LAYERS, lazy, rootPath } = options ?? {};
|
|
@@ -10,7 +10,7 @@ function pluginReactAlias(options) {
|
|
|
10
10
|
if (hasAlias) return;
|
|
11
11
|
api.expose(S_PLUGIN_REACT_ALIAS, true);
|
|
12
12
|
const require = createRequire(import.meta.url);
|
|
13
|
-
const reactLynxDir =
|
|
13
|
+
const reactLynxDir = node_path.dirname(require.resolve('@lynx-js/react/package.json', {
|
|
14
14
|
paths: [
|
|
15
15
|
rootPath ?? api.context.rootPath
|
|
16
16
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/react-alias-rsbuild-plugin",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"description": "A rsbuild plugin for making alias in ReactLynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rsbuild",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"unrs-resolver": "^1.
|
|
35
|
+
"unrs-resolver": "^1.9.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@microsoft/api-extractor": "7.52.8",
|
|
39
|
-
"@rsbuild/core": "1.3
|
|
40
|
-
"@lynx-js/react": "0.
|
|
41
|
-
"@lynx-js/react-webpack-plugin": "0.6.
|
|
39
|
+
"@rsbuild/core": "1.4.3",
|
|
40
|
+
"@lynx-js/react": "0.111.0",
|
|
41
|
+
"@lynx-js/react-webpack-plugin": "0.6.18",
|
|
42
42
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|