@xunlei-open/miniapp-module-react 0.1.1-beta.1 → 0.1.1-beta.2
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/README.md +8 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# @xunlei-open/miniapp-module-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
为迅雷微应用接入 React,自动注册对应的 Vite 插件。
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pnpm add -D @xunlei-open/miniapp-module-react
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
在 `miniapp.config.ts` 或 `.js` 中配置:
|
|
4
10
|
|
|
5
11
|
```ts
|
|
6
12
|
import { defineConfig } from '@xunlei-open/miniapp'
|
|
@@ -10,4 +16,4 @@ export default defineConfig({
|
|
|
10
16
|
})
|
|
11
17
|
```
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
开发和打包使用 [@xunlei-open/miniapp](https://github.com/xunlei-open/miniapp-devkit/tree/main/packages/miniapp) 的统一命令;类型检查需单独执行。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xunlei-open/miniapp-module-react",
|
|
3
|
-
"version": "0.1.1-beta.
|
|
3
|
+
"version": "0.1.1-beta.2",
|
|
4
4
|
"description": "React framework module for Xunlei Miniapps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"node": ">=20.19.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@xunlei-open/miniapp": "^0.1.1-beta.
|
|
29
|
+
"@xunlei-open/miniapp": "^0.1.1-beta.2",
|
|
30
30
|
"vite": "^8.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"vite": "^8.2.0",
|
|
37
|
-
"@xunlei-open/miniapp": "^0.1.1-beta.
|
|
37
|
+
"@xunlei-open/miniapp": "^0.1.1-beta.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsdown",
|