@tomjs/vite-plugin-hbuilderx 1.0.0 → 1.1.0
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/README.md +13 -0
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.1.0](https://github.com/tomjs/hbuilderx/compare/vite%401.0.0...vite%401.1.0) (2026-01-03)
|
|
2
|
+
|
|
3
|
+
- feat: vite 导出 env 改为 types [8740464](https://github.com/tomjs/hbuilderx/commit/8740464)
|
|
4
|
+
|
|
1
5
|
## 1.0.0 (2026-01-01)
|
|
2
6
|
|
|
3
7
|
- feat: 增加 cli [07bbebf](https://github.com/tomjs/hbuilderx/commit/07bbebf)
|
package/README.md
CHANGED
|
@@ -70,6 +70,19 @@ npm add -D @tomjs/vite-plugin-hbuilderx
|
|
|
70
70
|
|
|
71
71
|
### extension
|
|
72
72
|
|
|
73
|
+
`tsconfig.json`
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"compilerOptions": {
|
|
78
|
+
"types": [
|
|
79
|
+
"@tomjs/hbuilderx/types",
|
|
80
|
+
"@tomjs/vite-plugin-hbuilderx/types"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
73
86
|
代码片段,更多配置看示例
|
|
74
87
|
|
|
75
88
|
```ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/vite-plugin-hbuilderx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "为 HBuilderX 开发插件提供 vite 插件,可以使用 vue/react 开发 webview 的视图等",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom Gao",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
".": "./dist/index.js",
|
|
27
27
|
"./webview": "./dist/webview.js",
|
|
28
28
|
"./client": "./dist/client.iife.js",
|
|
29
|
-
"./
|
|
29
|
+
"./types": {
|
|
30
|
+
"types": "./env.d.ts"
|
|
31
|
+
}
|
|
30
32
|
},
|
|
31
33
|
"module": "./dist/index.js",
|
|
32
34
|
"types": "./dist/index.d.ts",
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
"devDependencies": {
|
|
53
55
|
"@types/jsdom": "^27.0.0",
|
|
54
56
|
"@types/lodash.merge": "^4.6.9",
|
|
55
|
-
"@tomjs/hbuilderx": "1.
|
|
57
|
+
"@tomjs/hbuilderx": "1.2.0"
|
|
56
58
|
},
|
|
57
59
|
"scripts": {
|
|
58
60
|
"dev": "tsdown --watch",
|